Description Usage Arguments Examples
View source: R/blindDataAnova.R
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.
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
)
|
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] |
1 2 3 4 5 6 | blindDataAnova(df_original = df_sim_anova,
y = "score",
predictors = c("expert", "conflict"),
blinding_method = "AverageWithNoisePerCase"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.