| llikChisq {rxode2} | R Documentation |
log likelihood and derivatives for chi-squared distribution
Description
log likelihood and derivatives for chi-squared distribution
Usage
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 |
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().
Value
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
Author(s)
Matthew L. Fidler
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)
[Package rxode2 version 2.1.3 Index]