hzdrate.sshzd2d | R Documentation |
Evaluate 2-D smoothing spline hazard estimates by sshzd2d
.
hzdrate.sshzd2d(object, time, covariates=NULL)
survexp.sshzd2d(object, time, covariates=NULL, job=3)
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. |
A vector of hazard or survival values.
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
.
Fitting function sshzd2d
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.