| llikWeibull {rxode2} | R Documentation |
log likelihood and derivatives for Weibull distribution
Description
log likelihood and derivatives for Weibull distribution
Usage
llikWeibull(x, shape, scale, full = FALSE)
Arguments
x |
variable distributed by a Weibull distribution |
shape, scale |
shape and scale parameters, the latter defaulting to 1. |
full |
Add the data frame showing x, mean, sd as well as the fx and derivatives |
Details
In an rxode2() model, you can use llikWeibull() but you have to
use the x and rate arguments. You can also get the derivative of shape or scale with
llikWeibullDshape() and llikWeibullDscale().
Value
data frame with fx for the log pdf value of with dProb
that has the derivatives with respect to the prob parameters at
the observation time-point
Author(s)
Matthew L. Fidler
Examples
llikWeibull(1, 1, 10)
# rxode2 can use this too:
et <- et(seq(0.001, 1, length.out=10))
et$shape <- 1
et$scale <- 10
model <- function() {
model({
fx <- llikWeibull(time, shape, scale)
dShape<- llikWeibullDshape(time, shape, scale)
dScale <- llikWeibullDscale(time, shape, scale)
})
}
rxSolve(model, et)
[Package rxode2 version 2.1.3 Index]