print.emaxPrior: Print protocol or sap text describing the prior distribution...

printemaxPriorR Documentation

Print protocol or sap text describing the prior distribution for the model parameters of the input emaxPrior object

Description

Print templated description of the prior distribution for the Emax model parameters. The level of detail is adjusted for protocol/sap. By default, the prior object is printed as a list without documentation.

Usage

## S3 method for class 'emaxPrior'
print(x, doc=FALSE, diffuse=NULL, file="", 
		modType=c('4','3'), docType=c('sap','protocol'), ...)

Arguments

x

Object created by function emaxPrior.control

doc

When TRUE, documentation for the prior distribution is returned. Default is FALSE and the prior input is returned as a list for default printing

diffuse

When TRUE, the scale parameters are described as creating diffuse prior distributions for the corresponding efficacy parameters. When FALSE, sections are identified where the user must add justification for the informative prior distributions. An error message is printed if doc=TRUE and diffuse is not specified

file

File for ascii output

modType

Character value ('4' or '3') that determines whether the 4-parameter sigmoidal Emax paramter is included, or the 3-parameter hyperbolic model is assumed with the Hill (slope) parameter set to 1

docType

When 'protocol', the prior description is less detailed.

...

No other inputs are supported

Details

If the object is entered at the command line, the implied print function is called without the required diffuse flag. The object will be printed as a list. The list output will be followed by error/warning messages noting the absence of the required input.

Value

Ascii text or text file that can be edited for inclusion in a protocol/sap

Author(s)

Neal Thomas

See Also

emaxPrior.control

Examples

prior<-emaxPrior.control(epmu=0,epsca=4,difTargetmu=0,
		difTargetsca=4,dTarget=20,
		p50=(2+5)/2,
		sigmalow=0.01,sigmaup=3)
				
print(prior,doc=TRUE,diffuse=TRUE)


clinDR documentation built on Aug. 9, 2023, 9:08 a.m.