calc_risk_WB | R Documentation |
This alias function calculates absolute risk profiles under weibull baseline hazard specifications. Used for backwards compatibility.
calc_risk_WB(
para,
Xmat1,
Xmat2,
Xmat3,
t_cutoff,
t_start = 0,
tol = 0.001,
frailty = TRUE,
type = "marginal",
gamma = 1,
model = "semi-markov",
h3_tv = "none",
tv_knots = NULL
)
para |
A numeric vector of parameters, arranged as follows:
the first |
Xmat1 |
Numeric matrices with |
Xmat2 |
Numeric matrices with |
Xmat3 |
Numeric matrices with |
t_cutoff |
Numeric vector indicating the time(s) to compute the risk profile. |
t_start |
Numeric scalar indicating the dynamic start time to compute the risk profile. Set to 0 by default. |
tol |
Numeric value for the tolerance of the numerical integration procedure. |
frailty |
Boolean indicating whether a gamma distributed subject-specific frailty should be included. Currently this must be set to TRUE. |
type |
String either indicating 'marginal' for population-averaged probabilities, or 'conditional' for probabilities computed at the specified gamma |
gamma |
Numeric value indicating the fixed level of the frailty assumed for predicted probabilities, if 'type' is set to 'conditional' |
model |
String specifying the transition assumption |
h3_tv |
String indicating whether there is an effect of t1 on hazard 3. |
tv_knots |
for piecewise effect of t1 in h3, these are the knots at which the effect jumps |
if Xmat has only one row, and t_cutoff is a scalar, then returns a 4 element row matrix
of probabilities. If Xmat has n
rows, then returns an n
by 4 matrix of probabilities.
If Xmat has n
rows and t_cutoff is a vector of length s
, then returns an s
by 4 by n
array.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.