PowANOVA {PDXpower} | R Documentation |
A function to obtain a power table with the combination of various number of PDX lines and number of individuals per PDX lines per treatment based on a prior knowledge of median survival
PowANOVA(
ctl.med.surv = 2.4,
tx.med.surv = 4.8,
tau2 = NULL,
icc = 0.1,
sigma2 = 1,
n = NULL,
m = NULL,
sim = 100,
two.sided = TRUE,
alpha = 0.05,
fixed.effect = FALSE,
ncores = NULL
)
ctl.med.surv |
a numeric value of the hypothesized medial survival in the control arm. Default is 2.4. |
tx.med.surv |
a numeric value of the hypothesized medial survival in the treatment arm. Default is 4.8. |
tau2 |
variance of PDX line specific random effect. Default is NULL. tau2 should be specified only when |
icc |
intraclass correlation coefficient. Default is 0.1. If |
sigma2 |
variance of random error. |
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. |
sim |
Number of Monte Carlo samples to be generated. Default is 100. |
two.sided |
A logical value to indicate if a two-sided hypothesis testing is conducted. Default is TRUE. |
alpha |
significance level. Default is 0.05. |
fixed.effect |
logical value to indicate if a fixed effects only model is fitted. Default is FALSE. |
ncores |
number of cores for parallel computation. |
Object of PowANOVA
with elements
PowTab |
the estimates of statistical power across |
require(PDXpower)
PowTab <- PowANOVA(ctl.med.surv = 2.4, tx.med.surv = 4.8, sim = 5, icc = 0.4,
n = 3, m = 2, ncores = 1)
PowTab
plotpower(PowTab, ylim = c(0, 1))