fit_models | R Documentation |
Fit models using columns specifying formulas and required dataframes;
fit_models(df, formulas_col, dfs_col, fun = fit_lm, family = NULL)
fit_lm as default modeling thing, but fit_glm, etc can also work
# Create data frame for modeling linear_models <- make_model_df(rhs_vars_list, outcome_vars_list, dfs) Fit linear models linear_models <- linear_models %>% mutate( lm_fit = fit_models( linear_models, "formulas", "dfs", fun = fit_lm) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.