biglm {matter} | R Documentation

## Using “biglm” with “matter”

### Description

This method allows `matter_mat` matrices and `matter_df` data frames to be used with the `biglm` and `bigglm` functions from the “biglm” package.

### Usage

    ## 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)

### Arguments

`formula` | A model `formula`.
`data` | A `matter` matrix with column names.
`weights` | A one-sided, single-term formula specifying weights.
`sandwich` | If `TRUE`, compute the Huber/White sandwich covariance matrix (uses `p^4` memory rather than `p^2`).
`chunksize` | An integer giving the maximum number of rows to process at a time. If left `NULL`, this will be calculated by dividing the `chunksize` of `data` by the number of variables in the formula.
`fc` | Either column indices or names of variables which are factors.
`...` | Additional options passed to `bigglm`.

### Value

An object of class `bigglm`.

### Author(s)

Kylie A. Bemis

### See Also

`bigglm`

### Examples

    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)

[Package matter version 1.16.0 Index]