re_run_model | R Documentation |
Re-run a linear regression model
re_run_model( model, data = NULL, dv = NULL, ivs = NULL, trans_df = NULL, id_var = NULL, pool_var = NULL, model_table = NULL, normalise_by_pool = FALSE, verbose = FALSE, decompose = TRUE )
model |
the model object used as the starting point of the re-run |
data |
|
dv |
string of the dependent variable name |
ivs |
character vector of the independent variables names |
trans_df |
|
id_var |
string of id variable name (e.g. date) |
pool_var |
string of pool variable name (e.g. country) |
model_table |
|
normalise_by_pool |
A boolean to specify whether to apply the normalisation |
verbose |
A boolean to specify whether to print warnings |
decompose |
A boolean to specify whether to generate the model decomposition |
Re-run a linear regression model using the function output of running linea::run_model
.
Model object
model = run_model(mtcars,ivs = 'cyl', dv = 'mpg',save_all_raw_data = TRUE) re_run_model(model,ivs = c('disp','cyl','wt'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.