treatsel.sim
runs simulations for a trial design that tests a number of experimental treatments against a single control treatment group in a seamless adaptive trial. Test treatments are compared to the control treatment using Dunnett's many-to-one testing procedure. An interim analysis is undertaken using an early outcome measure for each treatment (and control). A decision is made on which of the treatments to take forward, using a pre-defined selection rule. Data are simulated for the final outcome measure, and data from the interim and final analyses for the final outcome measure are combined together using either the inverse normal or Fisher combination test, and hypotheses tested at the selected level.
This function should not generally be called by the user. The more user-friendly function treatsel.sim
covers most common applications.
gtreatsel.sim(z1=c(0,0,0),z2=c(0,0,0),zearly=c(0,0,0),v1=c(1,1,1,1), v2=c(1,1,1,1),vearly=c(1,1,1,1),corr=0,weight=0.5, nsim=1000,seed=12345678,select=0,epsilon=1,thresh=1, level=0.025,ptest=seq(1:length(z1)),fu=FALSE, method="invnorm")
v1
v1
v1
select.rule
select
= 4, set epsilon criterion
select
= 6, set threshold criterion
TRUE
invnorm
or fisher
, with default invnorm
ptest
is rejectedParsons N, Friede T, Todd S, Valdes Marquez E, Chataway J, Nicholas R, Stallard N. An R package for implementing simulations for seamless phase II/III clinicals trials using early outcomes for treatment selection. Computational Statistics and Data Analysis 2012;56:1150-1160.
treatsel.sim
gtreatsel.sim(z1=c(1,0,2),z2=c(1,0,2),zearly=c(1,0,1),
v1=c(1,1,1,1),v2=c(1,1,1,1),vearly=c(1,1,1,1),
corr=0,weight=0.25,nsim=100,seed=12345678,
select=1,level=0.025,ptest = c(1:3),method="fisher")
Run the code above in your browser using DataLab