blindDataRegression_AverageWithNoisePerCase: Suitable for regression: This function average with noise per...

Description Usage Arguments

View source: R/blindDataRegression_AverageWithNoisePerCase.R

Description

Suitable for regression: This function average with noise per case perturbs the dependent variable by averaging the original value with a random value from a random normal where the mean and sd are equal to the mean and sd of the entire dataset.

Usage

1
2
3
4
5
6
blindDataRegression_AverageWithNoisePerCase(
  df_original,
  y,
  predictors,
  update_labels = TRUE
)

Arguments

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]


rjbderooij/blindData_Git documentation built on Dec. 20, 2020, 5:17 a.m.