FreqID_HReg2 | R Documentation |
Fit Parametric Frailty Illness-Death Model for Semi-Competing Risks Data
FreqID_HReg2(
Formula,
data,
na.action = "na.fail",
subset = NULL,
hazard = c("weibull"),
frailty = TRUE,
model,
knots_list = NULL,
p0_vec = rep(4, 3),
startVals = NULL,
hessian = TRUE,
control = NULL,
optim_method = if (tolower(hazard) %in% c("royston-parmar", "rp")) "BFGS" else
"L-BFGS-B"
)
Formula |
a Formula object, with the outcome on the left of a
|
data |
a |
na.action |
how NAs are treated. See |
subset |
a specification of the rows to be used: defaults to all rows. See |
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 |
knots_list |
Used for hazard specifications besides Weibull, a
list of three increasing sequences of integers, each corresponding to
the knots for the flexible model on the corresponding transition baseline hazard. If
|
p0_vec |
vector of length three of integers indicating how many baseline hazard parameters should be specified for each of the three transition hazards. This input is only relevant when hazard is something other than "weibull" and is superceded by knots_list. |
startVals |
A numeric vector of parameter starting values, arranged as follows:
the first |
hessian |
Boolean indicating whether the hessian (aka, the inverse of the covariance matrix) should be computed and returned. |
control |
a list of control attributes passed directly into the |
optim_method |
a string naming which |
FreqID_HReg2
returns an object of class Freq_HReg
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.