parm: Create prior for the phase 1 dose-finding model

Description Usage Arguments Details Value Author(s) Examples

View source: R/structure.R

Description

parm creates an S3 object of class parm that contains all necessary prior information to estimate the phase I repeated measures model.

Usage

1
2
parm(prior = c("gamma", "invgamma", "normal"), 
   mean=0, var=100, shape=0.001, scale=0.001)

Arguments

prior

a symbolic description of the prior distribution (gamma, invgamma, normal).

mean

the prior parameters that are dependent on the distribution that is used. Specifications are gamma(shape, rate), invgamma(shape, scale) and normal(mean,var).

var

the prior parameters that are dependent on the distribution that is used. Specifications are gamma(shape, rate), invgamma(shape, scale) and normal(mean,var).

shape

the prior parameters that are dependent on the distribution that is used. Specifications are gamma(shape, rate), invgamma(shape, scale) and normal(mean,var).

scale

the prior parameters that are dependent on the distribution that is used. Specifications are gamma(shape, rate), invgamma(shape, scale) and normal(mean,var).

Details

The function parm builds three types of priors: gamma, invgamma and normal.

Gamma parameters:

Inverse gamma parameters:

Normal parameters:

Value

An object of class parm, containing information for the prior.

Author(s)

Jun Yin

Examples

1
2
3
4
5
6
7
8
# Setup the prior distributions for the phase I dose-finding model:
control <- list(
 beta.dose = parm("normal", mean = 0, var = 1000),
 beta.other = parm("normal", mean = 0, var = 1000 ),
 gamma = parm("normal", mean = 0, var = 100 ),
 s2.gamma = parm("invgamma", shape = 0.001, scale = 0.001),
 s2.epsilon = parm("invgamma", shape = 0.001, scale = 0.001)
 )

phase1RMD documentation built on March 13, 2020, 1:40 a.m.

Related to parm in phase1RMD...