Learn R Programming

clinDR (version 2.4.1)

sigmaEmax: Extract Emax model residual SD estimates

Description

Extract Emax model residual SD estimates.

Usage

# S3 method for fitEmax
sigma(object, ...)
	# S3 method for fitEmaxB
sigma(object, ...)
	# S3 method for emaxsim
sigma(object, ...)
	# S3 method for emaxsimB
sigma(object, ...)

Value

MLE estimate of the residual SD from fitEmax. Vector of MLE estimates of the residual SD for each emaxsim simulation. Vector of MCMC generated residual SD for fitEmaxB. Vector of posterior median estimates of the residual SD for each emaxsimB simulation.

Arguments

object

Output of Emax fitting and simulation functions

...

None additional inputs supported

Author

Neal Thomas

See Also

coef, fitEmax, fitEmaxB, emaxsim, emaxsimB

Examples

Run this code
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)
sigma(testout)

Run the code above in your browser using DataLab