log likelihood of Cauchy distribution and it's derivatives (from stan)
log likelihood of Cauchy distribution and it's derivatives (from stan)
llikCauchy(x, location =0, scale =1, full =FALSE)
Arguments
x: Observation
location, scale: location and scale parameters.
full: Add the data frame showing x, mean, sd as well as the fx and derivatives
Returns
data frame with fx for the log pdf value of with dLocation and dScale that has the derivatives with respect to the parameters at the observation time-point
Details
In an rxode2() model, you can use llikCauchy() but you have to use all arguments. You can also get the derivative of location and scale with llikCauchyDlocation() and llikCauchyDscale().