GetParams: Obtains true simulation parameters for each supported...

Description Usage Arguments Value Examples

View source: R/GetParams.R

Description

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

Usage

1
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

1
2
3
4
5
6
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)

SubTite documentation built on Sept. 15, 2021, 9:07 a.m.

Related to GetParams in SubTite...