blindDataAnova: Suitable for ANOVA: The main function blindDataAnova takes an...

Description Usage Arguments Examples

View source: R/blindDataAnova.R

Description

Suitable for ANOVA: The main function blindDataAnova takes an input dataset and offers data blinding techniques to blind the data: (1) AddNoise, (2) AddBias, (3) CreateNew, (4) ScrambleOutcome, and (5) ScramblePredictors.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
blindDataAnova(
  df_original,
  y,
  predictors,
  blinding_method = c("AverageWithNoisePerCase", "AverageWithNoisePerGroup",
    "CenterGroups", "MaskGroups", "ScrambleCells", "ScrambleGroups", "ScrambleOutcome",
    "ScramblePredictors"),
  n_permutations = 6,
  update_labels = TRUE
)

Arguments

df_original

# original dataframe

y

# name of dependent variable

predictors

# name of predictors, for example c("expert", "conflict)

blinding_method

# name of blinding method

n_permutations

# number of requested permuted datasets

update_labels

# if TRUE update labels to BLIND_[abbrevation]_[name]

Examples

1
2
3
4
5
6
blindDataAnova(df_original = df_sim_anova, 
y = "score",
predictors = c("expert", "conflict"),
blinding_method = "AverageWithNoisePerCase"
) 
 

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