A function to estimate the survival function based on parameter estimates - used in ootstrapping CFM for CIs
Arguments
- lam
parameters of the flexible spline model
- kn
knots included in the flexible spline model
- k
number of knots in the flexible spline model
- haz_co
parameters for the baseline hazard function in the flexible spline model
- cov_co
covariate parameters of the flexible spline model
- cov
a matrix of covaraites from the Data Cohort
- tm
time at which to assess the survival function
- beta
parameter with which to adjust the baseline function (defaults to beta=0)