Description Usage Arguments Value
Get the log-cumulative hazard for a set of log-times given a Royston/Parmar-spline-survival distribution
1 2 | roy_parm_log_cumu_haz(log_time, gamma, all_log_knots, scaling_factor,
b = NULL)
|
log_time |
log(time) |
gamma |
Matrix of coefficients to be multiplied elementwise by basis |
all_log_knots |
Knots, including boundary knots, on the scale of log(time) |
scaling_factor |
A constant which gammas > 1 will be divided by, so that coefficients are on similar scales; helpful for optimization/MCMC |
b |
computing the basis can be costly. if you have already have the basis, you can pass it to this fxn, instead of passing log-time. |
The log-cumulative hazard.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.