# data frame 'test' generated by 'GenerateDataFrame'
# conditional power calculations
# within the exponential model
ConPwrExp(data = test, cont.time = 12, new.pat = c(2.5, 2.5),
theta.0 = 0.75, alpha = 0.05,
disp.data = TRUE, plot.km = TRUE)
# conditional power calculations
# within the non-mixture model with exponential survival
ConPwrNonMixExp(data = test, cont.time = 12, new.pat = c(2.5, 2.5),
theta.0 = 0.75, alpha = 0.05,
disp.data = TRUE, plot.km = TRUE)
# conditional power calculations
# within the non-mixture model with Weibull type survival
ConPwrNonMixWei(data = test, cont.time = 12, new.pat = c(2.5, 2.5),
theta.0 = 0.75, alpha = 0.05,
disp.data = TRUE, plot.km = TRUE)
# conditional power calculations
# within the non-mixture model with Gamma type survival
ConPwrNonMixGamma(data = test, cont.time = 12, new.pat = c(2.5, 2.5),
theta.0 = 0.75, alpha = 0.05,
disp.data = TRUE, plot.km = TRUE)
# conditional power calculations
# within the four mentioned models
CompSurvMod(data = test, cont.time = 12, new.pat = c(2.5, 2.5),
theta.0 = 0.75, alpha = 0.05,
disp.data = TRUE, plot.km = TRUE)
# conditional power calculations
# within the exponential model
# with the original formulae of the Andersen paper
ConPwrExpAndersen(data = test, cont.time = 12, new.pat = c(2.5, 2.5),
theta.0 = 0.75, alpha = 0.05,
disp.data = TRUE, plot.km = TRUE)
Run the code above in your browser using DataLab