# NOT RUN {
# generate a toy pilot data set
set.seed(123456)
X1 <- rnorm(100, mean = 0, sd = 0.3126)
X2 <- sample(c(0, 1), 100, replace = TRUE)
failureFlag <- sample(c(0, 1), 100, prob = c(0.25, 0.75), replace = TRUE)
dat <- data.frame(X1 = X1, X2 = X2, failureFlag = failureFlag)
powerEpiCont(formula = X1 ~ X2,
dat = dat,
var.X1 = "X1",
var.failureFlag = "failureFlag",
n = 107,
theta = exp(1),
alpha = 0.05)
# }
Run the code above in your browser using DataLab