ladreg | R Documentation |
ladreg computes the LAD regression estimate
ladreg(y, X, intcpt = T, b0 = NULL, printitn = 0)
y: |
numeric response N vector (real/complex) |
X: |
numeric feature N x p matrix (real/complex) |
intcpt: |
(logical) flag to indicate if intercept is in the model |
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: (numberic) the regression coefficient vector
iter: (numeric) # of iterations (given when IRWLS algorithm is used)
file location: Regression.R
ladreg(rnorm(5), matrix(rnorm(5)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.