SimPDXdata {PDXpower} | R Documentation |
A function to calculate the power under pre-specified effect size, variance, and correlation using Monte Carlo sampling scheme
SimPDXdata(
seed = 1000,
n,
m,
beta,
tau2,
lambda = 0.03,
nu = 2,
sigma2 = 1,
distr = c("Weibull", "normal"),
two.sided = TRUE,
Ct = 5,
censor = TRUE
)
seed |
an integer random seed number. |
n |
an integer number to specify the number of PDX lines. |
m |
an integer number to specify the number of individuals per PDX line per treatment. |
beta |
Treatment effect for the treated group. |
tau2 |
Error variance of random effect. |
lambda |
Scale parameter of Weibull distribution for the baseline hazard. |
nu |
Shape parameter of Weibull distribution for the baseline hazard. |
sigma2 |
Error variance of log survival time for both treatment groups. |
distr |
distributional assumption of survival time. |
two.sided |
a logical value to indicate if a two-sided test is performed. Default is TRUE. |
Ct |
a fixed time point when a study is designed to end for generating type 1 censoring data. |
censor |
logical value of whether a censoring distribution is considered in a data generation setting. Default is TRUE. |
Object of SimPDXdata
with elements
Data |
a simulated data. |
require(PDXpower)
data <- SimPDXdata(n = 5, m = 3, beta = 0.8, sigma2 = 1, tau2 = 0.1,
distr = "normal", censor = FALSE)