negLogLik {simIDM} | R Documentation |
Compute the Negative Log-Likelihood for a Given Data Set and Transition Model
Description
Compute the Negative Log-Likelihood for a Given Data Set and Transition Model
Usage
negLogLik(transition, data)
Arguments
transition |
( |
data |
( |
Details
Calculates the negative log-likelihood for a given data set and transition model. It uses the hazard and survival functions specific to the transition model.
Value
The value of the negative log-likelihood.
Examples
transition <- exponential_transition(h01 = 1.2, h02 = 1.5, h12 = 1.6)
simData <- getOneClinicalTrial(
nPat = c(30), transitionByArm = list(transition),
dropout = list(rate = 0.8, time = 12),
accrual = list(param = "time", value = 1)
)
negLogLik(transition, prepareData(simData))
[Package simIDM version 0.1.0 Index]