Description Usage Arguments Details Value See Also Examples
Perform memory-efficient generalized linear regression using the AS274 bounded memory QR factorization algorithm.
1 2 |
formula |
A symbolic description of the model to be fitted of class
|
family |
A |
weights |
A one-sided, single term |
start |
Starting values for the parameters in the linear predictor. |
... |
Ignored. |
An oomglm
model can be in various states of fit depending on the number
of seen observations and rounds of IRLS that have been performed.
It is important to view the model within the context of:
the number of observations processed per round of IRLS (n
);
the number of IRLS iterations that have been performed (iter
);
and if the IRLS algorithm has converged (converged
).
It is up to the user to know when fitting is complete. Therefore, only basic model characteristics are provided as values. Statistics are available on demand via summary and extractor functions.
converged |
Indicates if the IRLS algorithm has converged. |
iter |
The number of iterations of IRLS performed. |
n |
The number observations processed per round of IRLS. |
df.residual |
The residual degrees of freedom. |
df.null |
The residual degrees of freedom. |
formula |
the |
family |
a |
terms |
The |
weights |
The weights |
call |
The matched call. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # The `oomglm()` function employs Iteratively Weighted Least Squares (IWLS).
# The IWLS iterations are performed by the function `fit()` which
# makes passes over the data until convergence.
# reweight 4 times or until convergence
x <- oomglm(mpg ~ cyl + disp)
x <- fit(x, mtcars, times = 4)
tidy(x)
# To fit in-memory data in chunks, use `oomdata_tbl()`:
y <- oomglm(mpg ~ cyl + disp)
chunks <- oomdata_tbl(mtcars, chunk_size = 10)
y <- fit(y, chunks, times = 4)
tidy(y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.