Adds a centered regressor as a new column
1 | center_reg(x, hold_var)
|
x |
is the name of the original dataframe |
hold_var |
is the character vector name of the variable for which you want to calculate a centered regressor |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.