blindDataRegression_CreateNewCoefficients: Suitable for regression: This function creates new...

Description Usage Arguments

View source: R/blindDataRegression_CreateNewCoefficients.R

Description

Suitable for regression: This function creates new coefficients by replacing the original coefficients with a random value from a random uniform distribution between (-0.5 and +.5) that is multiplied by a scaling factor that is calculated by dividing the sd of the dependent variabel from the entire data by the sd of the predictor.

Usage

1
2
3
4
5
6
blindDataRegression_CreateNewCoefficients(
  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.