biglmfreq: Estimates the coefficients of a linear model

Description Usage Arguments Details Value See Also Examples

View source: R/biglmfreq.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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

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

Value

A biglmfreq object.

See Also

biglm, make.readchunk

Examples

1
2
3
4
5
6
7
8
9
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)

freqweights documentation built on May 29, 2017, 12:01 p.m.