Description Usage Arguments Value Examples
View source: R/parellel_regression.R
Parallel computation of multiple regression models.
1 | parallel_regression(data, calls)
|
data |
A data frame, or a list of data frames. |
calls |
Character vector, where each element is a function call to a
regression. The |
cores |
Numeric, the number of cores to use. |
A list of regression model objects.
1 2 3 4 5 6 7 8 9 10 | library(lme4)
data(sleepstudy)
models = c(
"lme4::lmer(Reaction ~ 1 + (1 | Subject), data = i)",
"lme4::lmer(Reaction ~ Days + (Days | Subject), data = i)",
"lme4::lmer(Reaction ~ Days + (1 | Subject) + (0 + Days | Subject), data = i)"
)
parallel_regression(sleepstudy, models)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.