powered by
The functions computes regression coefficients from a linear model.
lmCoef(X, Y)rlmCoef(X, Y)l1Coef(X, Y)
rlmCoef(X, Y)
l1Coef(X, Y)
The numeric vector of regression coefficients
the model (design) matrix of independent variables
the vector of dependent variable (time series)
Peter Laurinec, <[email protected]>
lm, rlm, rq
design_matrix <- matrix(rnorm(10), ncol = 2) lmCoef(design_matrix, rnorm(5)) rlmCoef(design_matrix, rnorm(5)) l1Coef(design_matrix, rnorm(5))
Run the code above in your browser using DataLab