roy_parm_log_cumu_haz: Get the log-cumulative hazard for a set of log-times given a...

Description Usage Arguments Value

Description

Get the log-cumulative hazard for a set of log-times given a Royston/Parmar-spline-survival distribution

Usage

1
2
roy_parm_log_cumu_haz(log_time, gamma, all_log_knots, scaling_factor,
  b = NULL)

Arguments

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.

Value

The log-cumulative hazard.


jwdink/survbayes documentation built on May 4, 2019, 4:23 p.m.