biglm | R Documentation |
This method allows bounded memory linear regression with matter_mat
and sparse_mat
matrices using the “biglm” package.
## S4 method for signature 'formula,matter_mat'
bigglm(formula, data, ..., nchunks = NA, verbose = NA)
## S4 method for signature 'formula,sparse_mat'
bigglm(formula, data, ..., nchunks = NA, verbose = NA)
formula |
A model |
data |
A |
nchunks |
The number of chunks to use. If |
verbose |
Should user messages be printed with the current chunk being processed? If |
... |
Additional options passed to |
An object of class bigglm
.
Kylie A. Bemis
bigglm
set.seed(1)
x <- matter_mat(rnorm(1000), nrow=100, ncol=10)
colnames(x) <- c(paste0("x", 1:9), "y")
fm <- paste0("y ~ ", paste0(paste0("x", 1:9), collapse=" + "))
fm <- as.formula(fm)
fit <- bigglm(fm, x, nchunks=10)
coef(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.