coefEmax {clinDR}R Documentation

Extract Emax model parameter estimates

Description

Extract Emax model parameter estimates. MLE for fitEmax. Matrix of MCMC generated parameters for fitEmaxB.

Usage

	## S3 method for class 'fitEmax'
coef(object, ...)
	## S3 method for class 'fitEmaxB'
coef(object, local=FALSE, ...)
	## S3 method for class 'emaxsim'
coef(object, ...)
	## S3 method for class 'emaxsimB'
coef(object, local=FALSE, ...)

Arguments

object

Output of Emax fitting function

local

When a prior distribution of type 'emaxPrior' was used to create the object, specifying local=TRUE will output the local 'difTarget' parameter estimates.

...

No additional inputs supported

Value

Vector of MLE estimates of model parameter from fitEmax. Matrix of MCMC generated parameters for fitEmaxB. Matrix with posterior median parameter estimates for each emaxsimB simulation: (led50,lambda,emax,e0) or (led50,emax,e0). For emaxsim, a list is returned with the model type fit for each simulation, and a matrix with the corresponding model coefficients. The order of the parameters is given in the emaxsim documentation.

Author(s)

Neal Thomas

See Also

sigma, fitEmax, fitEmaxB, emaxsim, emaxsimB

Examples

doselev<-c(0,5,25,50,100,350)
n<-c(78,81,81,81,77,80)

### population parameters for simulation
e0<-2.465375 
ed50<-67.481113 

dtarget<-100
diftarget<-9.032497
emax<-solveEmax(diftarget,dtarget,log(ed50),1,e0)

sdy<-8.0
pop<-c(log(ed50),emax,e0)    
dose<-rep(doselev,n)
meanlev<-emaxfun(dose,pop)  

y<-rnorm(sum(n),meanlev,sdy)

testout<-fitEmax(y,dose,modType=4)
coef(testout)

[Package clinDR version 2.3.5 Index]