| MCMC | R Documentation |
Performs MCMC and returns needed values for dose-finding in a list.
MCMC( Y, I, Doses, Groups, T1, Target, Upper, Dose, meanmu, meanslope, MeanInts, MeanSlopes, varint, varbeta, phetero, Stopped, NumPat, SubRout, B )
Y |
Vector containing observed event or censoring times. |
I |
Vector containing event indicators (1 if patient experiences an event for a patient). |
Doses |
Vector containing Doses of patients in trial. |
Groups |
Vector containing group assignment of patients, 0 is baseline group. |
T1 |
Reference time for toxicity. |
Target |
Target cumulative toxicity probability vector at time T1. |
Upper |
Cutoff values used to determine if accrual in a subgroup should be suspended. |
Dose |
Vector containing the standardized doses considered. |
meanmu |
Prior mean for baseline intercept. |
meanslope |
Prior mean for baseline slope. |
MeanInts |
Vector of prior means for the group specific intercept parameters. |
MeanSlopes |
Vector of prior means for the group specific slope parameters. |
varint |
Prior variance for the intercept parameters. |
varbeta |
Prior variance for the slope parameters. |
phetero |
Prior probability of heterogeneous subgroups. |
Stopped |
Current vector of STOPPED groups |
NumPat |
Number of patients |
SubRout |
Parameter to specify subgroup borrowing/clustering. 0=No borrowing, 1=Borrowing but no clustering, 2=Borrowing and clustering. |
B |
Number of Iterations to run for MCMC |
A list of quantities needed for determining the next dose to enroll each subgroup.