View source: R/piecewise_functions.R
nlogLikPW_ID_frail_M | R Documentation |
Function returning the negative log-likelihood for the illness-death model, under piecewise constant baseline hazard, gamma subject-specific frailty, and Markov transition assumption. Typically, this function will not be used directly by the user, but as part of a larger estimation procedure.
nlogLikPW_ID_frail_M(
para,
y1,
y2,
delta1,
delta2,
Xmat1 = NULL,
Xmat2 = NULL,
Xmat3 = NULL,
basis1,
basis2,
basis3,
basis3_y1
)
para |
A numeric vector of parameters, arranged as follows:
the first |
y1 , y2 |
Numeric vectors of length |
delta1 , delta2 |
Numeric vectors of length |
Xmat1 , Xmat2 , Xmat3 |
Numeric matrices with |
basis1 , basis2 , basis3 , basis3_y1 |
Numeric matrices with |
Returns numeric sum of negative log likelihood contributions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.