blindDataAnova_ScramblePredictors: Suitable for ANOVA: The function...

Description Usage Arguments

View source: R/blindDataAnova_ScramblePredictors.R

Description

Suitable for ANOVA: The function "blindDataAnova_ScramblePredictors" re-labels at random the grouping variables and then restores the original ordering by label name. Keep in mind that the factor labels (e.g., low/high) still remain, so the blinded dataset can still be traced back to the original variable (e.g., low/high is for expert variable, and conflict/no conflict is for conflict variable). Consider blindDataAnova_MaskGroups in combination with this method to prevent this.

Usage

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