knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
library(magrittr) mle_fit <- new_linear() %>% fit(mtcars, NULL) lasso_fit <- new_linear(coefs = "lasso") %>% fit(mtcars, NULL) mle_fit lasso_fit coef(mle_fit) coef(lasso_fit) class(mle_fit) class(lasso_fit)
Currently I'm just keeping some rough notes here on what I think linear modelling could look like in R.
write_model
: produce latex for the model that was fitAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.