powered by
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 object
the model object used as the starting point of the re-run
data.frame containing variables included in the model specification
data.frame
string of the dependent variable name
character vector of the independent variables names
data.frame defining the non-linear transformations to apply
string of id variable name (e.g. date)
string of pool variable name (e.g. country)
data.frame as created in the build_model_table function
build_model_table
A boolean to specify whether to apply the normalisation
A boolean to specify whether to print warnings
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.
linea::run_model
model = run_model(mtcars,ivs = 'cyl', dv = 'mpg',save_all_raw_data = TRUE) re_run_model(model,ivs = c('disp','cyl','wt'))
Run the code above in your browser using DataLab