decomping | R Documentation |
Variable decomposition of linear regression
decomping( model = NULL, de_normalise = TRUE, categories = NULL, tail_window = NULL, verbose = FALSE )
model |
Model object |
de_normalise |
A boolean to specify whether to apply the normalisation |
categories |
|
tail_window |
for time series, length of tail |
verbose |
A boolean to specify whether to print warnings |
Calculates the decomposition of the independent variables based on an input model object. This can be expanded by leveraging id variables (e.g. date) and categories (i.e. groups of variables).
a list
of 3 data.frame
's representing the variable and category decomposition, and the fitted values.
run_model(data = mtcars,dv = 'mpg',ivs = c('wt','cyl','disp'),decompose=FALSE) %>% decomping()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.