Description Usage Arguments Examples
View source: R/blindDataTtest.R
Suitable for ttest: This function is a main function. blindDataTtest allows the user to blind a dataset that is intended for regression
1 2 3 4 5 6 7 8 | blindDataTtest(
df_original,
y,
predictor,
blinding_method = c("AverageWithNoisePerCase", "AverageWithNoisePerGroup",
"CenterGroups", "MaskGroups", "ScrambleGroups", "ScrambleOutcome"),
update_labels = TRUE
)
|
df_original |
# original dataframe |
y |
# name of dependent variable |
predictor |
# name of predictor, for example: "expert" |
blinding_method |
# name of blinding method to apply to the dataset user can input any of the following blinding methods c("AverageWithNoisePerCase", "AverageWithNoisePerGroup", "CenterGroups", "MaskGroups", "ScrambleGroups", "ScrambleOutcome") |
update_labels |
# if TRUE update labels to BLIND_[abbrevation]_[name] |
1 2 3 4 5 6 | blindDataTtest(
df_original = data.frame(sickleave = 1:10, var1 = as.factor(rep(c(0,1), each = 5))),
y = "sickleave",
blinding_method = "AverageWithNoisePerCase",
predictor = "var1"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.