Learn R Programming

clinDR (version 2.4.1)

emaxfun: Vectorized versions of the hyperbolic and sigmoidal Emax models

Description

Evaluate Emax models for a vector of dose levels for multiple sets of parameters.

Usage

emaxfun(dose, parm)

Value

Returns a matrix of Emax function evaluations. The rows correspond to the parameter replications, and the columns correspond to the dose levels.

Arguments

dose

A vector (or scalar) of dose levels

parm

A vector or matrix with columns containing log(ed50), Hill parameter if sigmoid model, emax,e0

Author

Neal Thomas

Details

The Hill parameter is omitted from parm for the hyperbolic model

See Also

Examples

Run this code

doselev<-c(0,5,25,50,100)
e0<-2.465375 
ed50<-67.481113 

dtarget<-100
diftarget<-9.032497
lambda=2
emax<-solveEmax(diftarget,dtarget,log(ed50),lambda,e0)

parm<-c(log(ed50),lambda,emax,e0)
plot(doselev,emaxfun(doselev,parm))

Run the code above in your browser using DataLab