clinDR-package {clinDR}R Documentation

Bayesian and maximum likelihood Emax model fitting, graphics and simulation for clinical dose response.


The functions fitEmax and fitEmaxB fit an Emax model to binary or continuous data using maximum likelihood or Bayesian estimation. They have several generic supporting functions. Functions to produce plots associated with dose response analyses are (plotD, plotB, plot.fitEmax,plot.fitEmaxB). The functions emaxsim and emaxsimB perform simulations of 4- and 3-parameter Emax ML or Bayesian estimation. The ML estimates are replaced with alternative model fits when the primary estimation fails. Several supporting functions are supplied to analyze the output of emaxsim and emaxsimB, including analyses for specific simulated data sets. All of the data sets from dose response meta analyses are included in metaData.


The function compileStanModels must be executed once after the package is installed to create compiled STAN Emax models before the Bayes functions in the package can be executed. This requires 3-10 minutes to complete on most machines. The compiled code is 32-bit or 64-bit specific, and both must be created if both versions of R are used.

The Bayesian computations use the R package rstan. It can be installed from CRAN. Windows users should check the instructions for rstan at the and Note that Rtools must be installed, which is a simple, but often overlooked step. Instructions for its installation are given in the second URL.


Neal Thomas [aut, cre], Jing Wu[aut]

See Also


[Package clinDR version 2.3.5 Index]