View source: R/blindDataRegression_AddBiasToCoefficients.R
Suitable for regression: This function adds bias to coefficients by multiplying the original coefficient with a random value from a random uniform distribution between (-2 and +2)
1 2 3 4 5 6 | blindDataRegression_AddBiasToCoefficients(
df_original,
y,
predictors,
update_labels = TRUE
)
|
df_original |
# original dataframe |
y |
# name of dependent variable |
predictors |
# name of predictors, for example c("expert", "conflict) |
update_labels |
# if TRUE update labels to BLIND_[abbrevation]_[name] |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.