Evaluate smoothing spline hazard estimates by sshzd
.
hzdrate.sshzd(object, x, se=FALSE, include=c(object$terms$labels,object$lab.p))
hzdcurve.sshzd(object, time, covariates=NULL, se=FALSE)
survexp.sshzd(object, time, covariates=NULL, start=0)
For se=FALSE
, hzdrate.sshzd
returns a vector of hazard
evaluations, and hzdcurve.sshzd
returns a vector or columns of
hazard curve(s) evaluated on time
points at the
covariates
values. For se=TRUE
, hzdrate.sshzd
and hzdcurve.sshzd
return a list consisting of the following
elements.
Vector or columns of hazard.
Vector or columns of standard errors for log hazard.
survexp.sshzd
returns a vector or columns of expected
survivals based on the cumulative hazards over (start
,
time
) at the covariates
values, which in fact are the
(conditional) survival probabilities \(S(time)/S(start)\).
Object of class "sshzd"
.
Data frame or vector of points on which hazard is to be evaluated.
Flag indicating if standard errors are required.
List of model terms to be included in the evaluation.
Vector of time points.
Vector of covariate values.
Optional starting times of the intervals.
Fitting function sshzd
.