Description Usage Arguments Value Examples
View source: R/package_contents.R
Setup Model and Formula
1 2 3 4 5 6 7 8 9 10 11 12 13 | setup_model(
model_name,
synced_folder,
clear_model = TRUE,
formula = y ~ x1 + x2,
family = binomial(),
all_site_names = NULL,
link = NULL,
max_iterations = 100,
tolerance = 1e-09
)
make_family(family, link = NULL)
|
model_name |
name of your model |
synced_folder |
synced folder to do computation |
clear_model |
Should the model be cleared (all files deleted model with same name) before creating new model |
formula |
model formula to fit, with tilde syntax |
family |
generalized linear model family, see |
all_site_names |
all the site names to fit this model |
link |
link function to use with family |
max_iterations |
maximum number of iterations to run |
tolerance |
tolerance for convergence |
A character path to a formula/model file
1 2 3 4 5 6 | tdir = tempfile()
dir.create(tdir)
model_name = "logistic_example"
form_file = setup_model(model_name = model_name,
synced_folder = tdir,
formula = y ~ x1 + x2, family = binomial())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.