sieveSurv.predict: Predict survival based on semiparametric B-spline sieve...

Description Usage Arguments Value

View source: R/sieveSurv.predict.R

Description

Predict survival based on semiparametric B-spline sieve estimate

Usage

1
2
3
4
5
6
7
8
sieveSurv.predict(
  newdata,
  time,
  covar,
  all_covar,
  all_event_times,
  sum_pBspline
)

Arguments

newdata

Dataframe or matrix containing named columns time and covar.

time

Column name for follow-up time.

all_covar

Dataframe or matrix containing all values of covar from data used in sieveSurv().

all_event_times

Dataframe or matrix containing all values of time for uncensored subjects from data used in sieveSurv().

sum_pBspline

Vector of sum over splines for all combinations of all_event_times and all_covar.

event

Column name for event indicators.

Value

Copy of newdata with added column surv containing the predicted survival probability.


sarahlotspeich/sieveSurv documentation built on Feb. 14, 2022, 5:10 a.m.