Description Usage Arguments Details Value Author(s)
GLS
utilizes lm.fit
and Cholesky decomposition to fit a
generalized least squares regression
1 |
y |
response variable |
X |
design matrix |
R |
residual covariance or correlation matrix (can be sparse), ignored
if |
L |
lower triangular matrix of the Cholesky decomposition of |
coef_only |
reduces the output of the model to the estimated coefficients (and the generalized residual sums of squares) only. |
Note that the size of R
does not matter (i.e. if R
is
multiplied by a scalar, the results don't change). Note also that the
R-squared is estimated as 1-GSSE/GSST, where GSSE is the generalized
residual sum of squares (i.e. the objective function score of the model)
and GSST is the generalized total sum of squares (i.e. the objective
function score of the model when only the intercept is included in the
model)
GLS
a list
of
coef
: a table of estimates and standard errors
R2
: the R-squared of the model fit
sigma2
: the residual variance
GSSE
: the generalized residual sum of squares (objective function
score)
coef_vcov
: the error variance matrix of the estimates
Geir H. Bolstad
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.