Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

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

Details

The Hill parameter is omitted from parm for the hyperbolic model

Value

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

Note

The ordering of the parameters was selected to faciliate use of the 'plinear' algorithm in function nls.

Author(s)

Neal Thomas

See Also

Examples

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))

clinDR

Simulation and Analysis Tools for Clinical Dose Response Modeling

v2.3.5
GPL (>= 2)
Authors
Neal Thomas [aut, cre] (<https://orcid.org/0000-0002-1915-8487>), Jing Wu [aut], Mike K. Smith [aut]
Initial release
2021-04-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.