| biglm {matter} | R Documentation |
This method allows matter_mat matrices and matter_df data frames to be used with the biglm and bigglm functions from the “biglm” package.
## S4 method for signature 'formula,virtual_df' biglm(formula, data, weights = NULL, sandwich = FALSE) ## S4 method for signature 'formula,virtual_df' bigglm(formula, data, ..., chunksize = NULL) ## S4 method for signature 'formula,matter_mat' bigglm(formula, data, ..., chunksize = NULL, fc = NULL) ## S4 method for signature 'formula,sparse_mat' bigglm(formula, data, ..., chunksize = NULL, fc = NULL) ## S4 method for signature 'formula,virtual_mat' bigglm(formula, data, ..., chunksize = NULL, fc = NULL)
formula |
A model |
data |
A |
weights |
A one-sided, single-term formula specifying weights. |
sandwich |
If |
chunksize |
An integer giving the maximum number of rows to process at a time. If left |
fc |
Either column indices or names of variables which are factors. |
... |
Additional options passed to |
An object of class bigglm.
Kylie A. Bemis
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, data=x, chunksize=50)
coef(fit)