View source: R/lm.contribution.summary.R

Takes a lm and applies coefficients to show how each independent variable contributes to the dependent variable, but grouped by whatever is before the first "." in the independent variable. "Ext." and the intercept are grouped to "Base". IMPORTANT: lm(data = ?) has to be a data.table.

1 | ```
lm.contribution.summary(lm.obj, date.index = "Week")
``` |

`date.index` |
Character. The date index of the lm(data = ?) variable. |

`lm.object` |
lm object. A lm saved to a variable. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.