Description Usage Arguments Value
Nonparametrically estimate the survival function using B-spline sieves (for use with cross-validation)
1 2 3 4 5 6 7 8 9 10 | cv_sieveSurv(
time,
event,
covar = NULL,
bspline,
data,
tol = 1e-04,
max_iter = 1000,
assume_last = FALSE
)
|
time |
Column name for follow-up time |
event |
Column name for event indicators |
covar |
(Optional) column name(s) for additional fully-observed covariates. Default is |
bspline |
Column names for B-spline basis. |
data |
Dataframe or matrix containing (at least) named columns |
tol |
Tolerance to define convergence. Default is |
max_iter |
Maximum number of iterations allowed for the EM algorithm. Default is |
assume_last |
Assume last observed |
A list with the following elements:
bspline_coeff |
the values of the B-spline coefficients at convergence |
conv |
indicator of convergence for the EM algorithn |
conv_msg |
description of nonconvergence if |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.