Description Usage Arguments Value
View source: R/sieveSurv.predict.R
Predict survival based on semiparametric B-spline sieve estimate
1 2 3 4 5 6 7 8 | sieveSurv.predict(
newdata,
time,
covar,
all_covar,
all_event_times,
sum_pBspline
)
|
newdata |
Dataframe or matrix containing named columns |
time |
Column name for follow-up time. |
all_covar |
Dataframe or matrix containing all values of |
all_event_times |
Dataframe or matrix containing all values of |
sum_pBspline |
Vector of sum over splines for all combinations of |
event |
Column name for event indicators. |
Copy of newdata
with added column surv
containing the predicted survival probability.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.