fit_lm | R Documentation |
fit_lm
is a function that fits a linear regression model and returns a 'model frame', and can keep the model matrix, etc.
fit_lm( formula, df, keep_data = TRUE, y = TRUE, qr = TRUE, keep_model_matrix = FALSE )
keep_data |
whether to return the model frame? |
qr |
whether to keep the 'QR decomposition', a factorization of the (?) model matrix |
keep_model_matrix |
whether to keep the model matrix |
linear_models <- linear_models %>% mutate( lm_fit = fit_moels( 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.