Description
Log-Likelihood Functions for 'rxode2'.
Description
Provides the log-likelihoods with gradients from 'stan' (Carpenter et al (2015), <arXiv:1509.07164>) needed for generalized log-likelihood estimation in 'nlmixr2' (Fidler et al (2019) <doi:10.1002/psp4.12445>). This is split of to reduce computational burden of recompiling 'rxode2' (Wang, Hallow and James (2016) <doi:10.1002/psp4.12052>) which runs the 'nlmixr2' models during estimation.
README.md
rxode2ll
The goal of rxode2ll is to create log-likelihood functions for use in ‘rxode2’ and ‘nlmixr2’
Installation
You can install the development version of rxode2ll from GitHub with:
# install.packages("devtools")
devtools::install_github("nlmixr2/rxode2ll")
Examples
Each of the C++ interface to the stan
log-likelihood equations can be used in a stand-alone manner. For example:
llikNorm(seq(-2,2,length.out=10), full=TRUE)
The following log-likelihood distributions are supported:
llikNorm()
llikPois()
llikBinom()
llikNbinom()
llikNbinomMu()
llikBeta()
llikT()
llikChisq()
llikExp()
llikF()
llikGeom()
llikUnif()
llikWeibull()
llikGamma()
llikCauchy()