parm {phase1RMD}R Documentation

Create prior for the phase 1 dose-finding model

Description

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

Usage

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

# 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)
 )

[Package phase1RMD version 1.0.9 Index]