sdflm {SQLiteDF} | R Documentation |
Currently, a convenience wrapper around biglm. In the future, biglm functionalities will be implemented directly inside the package.
sdflm(formula, sdf, batch.size = 1024)
formula |
model formula |
sdf |
the sqlite.data.frame |
batch.size |
number of rows at a time to be fed to biglm |
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).
An object of class biglm.
Miguel A. R. Manese
library(biglm) iris.sdf <- sqlite.data.frame(iris) iris.lm <- sdflm(Sepal.Length ~ Species, iris.sdf) summary(iris.lm)