llikChisq function

log likelihood and derivatives for chi-squared distribution

log likelihood and derivatives for chi-squared distribution

llikChisq(x, df, full = FALSE)

Arguments

  • x: variable that is distributed by chi-squared distribution
  • df: degrees of freedom (non-negative, but can be non-integer).
  • 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 dDf

that has the derivatives with respect to the df parameter the observation time-point

Details

In an rxode2() model, you can use llikChisq() but you have to use the x and df arguments. You can also get the derivative of df with llikChisqDdf().

Examples

llikChisq(1, df = 1:3, full=TRUE) llikChisq(1, df = 6:9) et <- et(1:3) et$x <- 1 model <- function() { model({ fx <- llikChisq(x, time) dDf <- llikChisqDdf(x, time) }) } rxSolve(model, et)

Author(s)

Matthew L. Fidler