freqweights (version 1.0.1)

biglmfreq: Estimates the coefficients of a linear model

Description

Estimates the coefficients of a linear model following the guidelines of biglm

Usage

biglmfreq(formula, data, freq = NULL)

## S3 method for class 'biglmfreq': coef(object, ...)

## S3 method for class 'biglmfreq': predict(object, ...)

## S3 method for class 'biglmfreq': print(x, ...)

## S3 method for class 'biglmfreq': update(object, ...)

Arguments

formula
a model formula
data
data frame that must contain all variables in formula and freq
freq
a string of the variable specifying frequency weights
object
a biglmfreq object
...
See Details
x
a biglmfreq object

Value

  • A biglmfreq object.

Details

Any variables in the formula are removed from the data set.

It only computes the coefficients of the linear model.

... should be a data frame when predict. See Examples

... should be a data frame when update. See Examples

See Also

biglm, make.readchunk

Examples

Run this code
mt <- biglmfreq(Sepal.Length ~ Sepal.Width, iris)
coef(mt)

chunk1 <- iris[1:30,]
chunk2 <- iris[-c(1:30),]
mf1 <- biglmfreq(Sepal.Length ~ Sepal.Width, chunk1)
mf2 <- update(mf1, chunk2)

predict(mf2, iris)

Run the code above in your browser using DataCamp Workspace