View source: R/bigRfit_biglm_xc.R
bigRfit_biglm_xc | R Documentation |
Fits the regression coeficients for the linear regression model with a centered design matrix. Algorithm designed for big data sets which uses a partial ranking and step scores.
bigRfit_biglm_xc(formula, data, intercept = FALSE, yhat0 = NULL, ehat0 = NULL, B = 1000, scores = wscores, max.iter = 50, eps = sqrt(.Machine$double.eps), TAU = "DT", ...)
formula |
an object of class formula |
data |
data frame |
intercept |
indicator to request estimate of alpha (FALSE by default) |
yhat0 |
optional initial estimate of responses |
ehat0 |
optional initial estimate of residuals |
B |
number of bins to use (default of 1000) |
scores |
an object of class 'scores' (wscores by default) |
max.iter |
maximum number of iterations |
eps |
specify tol |
TAU |
version of estimation routine for scale parameter. DT for approximate binned estimate (using data.table), F0 for Fortran using full set of residuals, N for none |
... |
Additional arguments. |
Given a formula y ~ x fits the model y ~ xc where xc is the centered x. Estimation of an intercept is not needed. However, an estimate of alpha in the model y = alpha 1 + xc beta + e may be requested using the option intercept=TRUE.
Rank regression estimates beta by minimizing the dispersion functions: D(beta) = a(R(y-xc beta))^T (y-xc beta) where R denotes rank and a is a non-decreasing score function.
In this implementation, instead of using a full ranking, the observations are binned into bins of approximate equal size. The parameter B specifies the number of bins to use. B must be <= the number of observations. Step scores are used so that observations within the same bin are assigned the same score.
This function is (mostly) intended to be an internal function. See bigRreg for general purpose regression.
John Kloke <johndkloke@gmail.com>
bigRreg
, ~~~
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.