GetParams {SubTite}R Documentation

Obtains true simulation parameters for each supported distribution function to correspond to a probability of the truth by time T1.

Description

Obtains true simulation parameters for each supported distribution function to correspond to a probability of the truth by time T1.

Usage

GetParams(Family, ParamNum, Param, GroupProb, T1)

Arguments

Family

What distribution Family to simulate from. Options include: Exponential,Gamma, Lognormal, Uniform, Weibull.

ParamNum

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.

Param

#Groups X #Doses Matrix containing one parameter for each subgroup and dose.

GroupProb

#Groups X #Doses Matrix containing the true toxicity probability by time T1.

T1

Toxicity observation window.

Value

A list containing the hyperparameter matrices to input into the SimTrial function. Also plots the hazard of toxicity for each subgroup and dose.

Examples

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)

[Package SubTite version 4.0.5 Index]