Vectorized versions of the hyperbolic and sigmoidal Emax models
Evaluate Emax models for a vector of dose levels for multiple sets of parameters.
emaxfun(dose, parm)
dose |
A vector (or scalar) of dose levels |
parm |
A vector or matrix with columns containing
|
The Hill parameter is omitted from parm
for the hyperbolic model
Returns a matrix of Emax function evaluations. The rows correspond to the parameter replications, and the columns correspond to the dose levels.
The ordering of the parameters was selected to faciliate use of the 'plinear' algorithm in function nls.
Neal Thomas
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))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.