Description Usage Arguments Value
A function to calucate decomp and contribution for multiplicative model
1 2 | decomp_log(input_data, input_var, y, y_m = NULL, date, cs, sm_factor,
is.output = F, is.index = F)
|
input_data |
a data.table class dataset for modeling. |
input_var |
a data.table class dataset for variable coefficient. |
y |
a charactor for the dependent variable name in input_data. |
y_m |
a charactor for the mean of dependent variable name in input_data; default is NULL. If not NULL, then is.index must be True. |
date |
a charactor of the date variable name in input_data. |
cs |
a charactore vector for the cross section variable names in input_data. It could be more than one variable. |
sm_factor |
the smoother span. This gives the proportion of points in the plot which influence the smooth at each value. Larger values give more smoothness. |
is.output |
if TRUE, then output tabels to work directory. Default is False. |
is.index |
if TRUE, then y_m argument need to be setup. Default is False. |
a list of modeling result. It contains the following components: con: contribution table; decomp: decomp table; app: a shiny app;
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.