Calculate the log likelihood of the binomial function (and its derivatives)
Calculate the log likelihood of the binomial function (and its derivatives)
llikBeta(x, shape1, shape2, full =FALSE)
Arguments
x: Observation
shape1, shape2: non-negative parameters of the Beta distribution.
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 dShape1 and dShape2 that has the derivatives with respect to the parameters at the observation time-point
Details
In an rxode2() model, you can use llikBeta() but you have to use all arguments. You can also get the derivative of shape1 and shape2 with llikBetaDshape1() and llikBetaDshape2().