sdflm {SQLiteDF}R Documentation

Linear Models On SQLite Data Frames

Description

Currently, a convenience wrapper around biglm. In the future, biglm functionalities will be implemented directly inside the package.

Usage

sdflm(formula, sdf, batch.size = 1024)

Arguments

formula model formula
sdf the sqlite.data.frame
batch.size number of rows at a time to be fed to biglm

Details

biglm can computes the linear model coefficients and statistics incrementally by feeding it with part of the data first at a time. sdflm just gets data from the SDF into a plain data frame, batch.size at a time, and then used with biglm. to

Currently, models using only those variables inside the SDF are supported (i.e. do not use variables that is not in the SDF, like those in the global environment).

Value

An object of class biglm.

Author(s)

Miguel A. R. Manese

See Also

biglm

Examples

library(biglm)
iris.sdf <- sqlite.data.frame(iris)
iris.lm <- sdflm(Sepal.Length ~ Species, iris.sdf)
summary(iris.lm)

[Package SQLiteDF version 0.1.32 Index]