search for: fit1_shrunk

Displaying 1 result from an estimated 1 matches for "fit1_shrunk".

2024 May 14
0
flexsurvspline with offset
...it1,type="survival",t=5) y5_Flex <- y5_Flex_1[[1]]$est y5_Flex # Shrinkage factor vanH <- 0.9589255 heuristic_lp_flex = vanH*predf?????? # Now calculate the shrunken model baseline survival prob at 5 years by fixing the shrunken lp as an offset and predicting the baseline survival fit1_shrunk <- flexsurvspline(Surv(rfstime,rfs)~offset(heuristic_lp_flex),k=2,data=rotterdam) The error message is Error in model.matrix.default(forms[[i]], m) : model frame and formula mismatch in model.matrix() Any suggestions gratefully received!!! Kind regards, Laura [[alternative HTML version de...