Last chance! 50% off unlimited learning
Sale ends in
Obtains true simulation parameters for each supported distribution function to correspond to a probability of the truth by time T1.
GetParams(Family, ParamNum, Param, GroupProb, T1)
What distribution Family to simulate from. Options include: Exponential,Gamma, Lognormal, Uniform, Weibull.
Parameter index for user set value. For example, ParamNum=1 for a Gamma distribution means that the user will supply the shape parameters in the param matrix. If ParamNum=2, the user will supply the rate parameters in the param matrix.
#Groups X #Doses Matrix containing one parameter for each subgroup and dose.
#Groups X #Doses Matrix containing the true toxicity probability by time T1.
Toxicity observation window.
A list containing the hyperparameter matrices to input into the SimTrial function. Also plots the hazard of toxicity for each subgroup and dose.
# NOT RUN {
GroupProb =matrix(c(.05,.3,.6,.7,.8,.01,.02,.13,.27,.5),nrow=2,byrow=TRUE)
##True Simulation distribution
Family="Weibull"
T1=6
Param = GroupProb*0 + 4 ##Late onset weibull
SimTruth = GetParams("Weibull",1,Param,GroupProb,T1)
# }
Run the code above in your browser using DataLab