hzdrate.sshzd2d {gss} | R Documentation |
Evaluating 2-D Smoothing Spline Hazard Estimates
Description
Evaluate 2-D smoothing spline hazard estimates by sshzd2d
.
Usage
hzdrate.sshzd2d(object, time, covariates=NULL)
survexp.sshzd2d(object, time, covariates=NULL, job=3)
Arguments
object |
Object of class |
time |
Matrix or vector of time points on which hazard or survival function is to be evaluated. |
covariates |
Data frame of covariate values. |
job |
Flag indicating which survival function to evaluate. |
Value
A vector of hazard or survival values.
Note
For job=1,2
, survexp.sshzd2d
returns marginal survival
S1(t)
or S2(t)
. For job=3
,
survexp.sshzd2d
returns the 2-D survival S(t1,t2)
.
For hzdrate.sshzd2d
and survexp.sshzd2d
with
job=3
, time
should be a matrix of two columns. For
survexp.sshzd2d
with job=1,2
, time
should be a
vector.
When covariates
is present, its length should be either 1 or
that of time
.
See Also
Fitting function sshzd2d
.
[Package gss version 2.2-7 Index]