Spicing up your model soup!
Fit many regression models based on a vector of formulas and a fitting function. Minimal dependencies (only leifeld/texreg). Should work with any formula-based fitting function.
knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(saltr) data(mtcars) f_lm <- c( mpg ~ vs, hp ~ vs, disp ~ vs * am) fit_models(f_lm, fitter=lm, data=mtcars, output=FALSE, print=TRUE) f_glm <- c( vs ~ mpg, am ~ mpg) mods <- fit_models(f_glm, fitter=glm, data=mtcars, family=binomial('logit'), output=TRUE, print=TRUE)
# Install development version from GitHub remotes::install_github("sumtxt/saltr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.