frlr1 {fRLR} | R Documentation |
Fit a set of linear regressions which differ only in one variable.
frlr1(R_X, R_Y, R_COV)
R_X |
the observation matrix |
R_Y |
the response |
R_COV |
common variables |
the fitting results for each regression.
Lijun Wang
https://stats.hohoweiya.xyz//regression/2017/09/26/An-R-Package-Fit-Repeated-Linear-Regressions/
library(fRLR) set.seed(123) X = matrix(rnorm(50), 10, 5) Y = rnorm(10) COV = matrix(rnorm(40), 10, 4) frlr1(X, Y, COV)