rladreg | R Documentation |
computes the LAD regression estimate
rladreg(y, X, b0 = NULL, printitn = F)
y: |
numeric response N vector (real/complex) |
X: |
numeric feature N x p matrix (real/complex) |
b0: |
numeric optional initial start of the regression vector for IRWLS algorithm. If not given, we use LSE (when p>1). |
printitn: |
print iteration number (default = 0, no printing) and other details |
b1: numeric the regression coefficient vector
iter: (numeric) # of iterations (given when IRWLS algorithm is used)
file location: Regression.R
library(MASS) rladreg(1:5, matrix(-1:3)) rladreg(1:5 +1i, matrix(-1:3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.