View source: R/nll_ngrad_nhess_functions.R
ngrad_mat_func | R Documentation |
Function returning a matrix of contributions to the gradient of the negative log-likelihood for the illness-death model, under specified baseline hazard, and specified frailty, and specified Markov/semi-Markov transition assumption. Typically, this function will not be used directly by the user, but as part of a larger estimation procedure.
ngrad_mat_func(
para,
y1,
y2,
delta1,
delta2,
Xmat1,
Xmat2,
Xmat3,
hazard,
frailty,
model
)
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 |
hazard |
String specifying the form of the baseline hazard. |
frailty |
Boolean indicating whether a gamma distributed subject-specific frailty should be included. Currently this must be set to TRUE. |
model |
String specifying the transition assumption |
Returns numeric matrix with n
rows and width same as length of para
with gradient contributions
for the negative log likelihood.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.