Takes a lm and applies coefficients to show how each independent variable contributes to the dependent variable. IMPORTANT: lm(data = ?) has to be a data.table.
lm.contribution(lm.object, date.index = "Week")
lm object. A lm saved to a variable.
Character. The date index of the lm(data = ?) variable.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.