blindDataTtest: Suitable for ttest: This function is a main function....

Description Usage Arguments Examples

View source: R/blindDataTtest.R

Description

Suitable for ttest: This function is a main function. blindDataTtest allows the user to blind a dataset that is intended for regression

Usage

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
)

Arguments

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]

Examples

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"
)

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