fastLmPure | R Documentation |
fastLmPure
provides the estimates of the linear model based on RcppBlaze.
fastLmPure(X, y, type)
X |
A model matrix. |
y |
A response vector. |
type |
A integer. 0 is QR solver, 1 is LDLT solver, 2 is LLT sovler and 3 is LU solver. |
fastLm
estimates the linear model using the solve
.
A list containing coefficients, standard errors, rank of model matrix, degree of freedom of residuals, residuals, the standard deviation of random errors and fitted values.
# according to fastLm example in RcppArmadillo
data(trees, package="datasets")
flm <- fastLmPure(cbind(1, log(trees$Girth)), log(trees$Volume), 0)
print(flm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.