Survival analysis in health economic evaluation Contains a suite of functions to systematise the workflow involving survival analysis in health economic evaluation. survHE can fit a large range of survival models using both a frequentist approach (by calling the R package flexsurv) and a Bayesian perspective.
I'm trying to extrapolate the data provided in the survival curve for Age <50, non-ECD. I extracted the data using the Webdigitizer platform and using the R code provided by Guyot et al for the extrapolation. The numbers at risk are not provided in the survival curve and therefore I have calculated manually for the timepoints. Numbers at risk are 0=2698, 1=2482, 2=2401, 3=2347, 4=2266, 5=2185.
When I run the code I'm getting an error rep(t.S[i], d[i]) : invalid 'times' argument. Also, having a problem with fit.models function of the survHE package. I updated the package and still gives the error that fit.models cannot be found.
I'm trying to extrapolate the data provided in the survival curve for Age <50, non-ECD. I extracted the data using the Webdigitizer platform and using the R code provided by Guyot et al for the extrapolation. The numbers at risk are not provided in the survival curve and therefore I have calculated manually for the timepoints. Numbers at risk are 0=2698, 1=2482, 2=2401, 3=2347, 4=2266, 5=2185.
When I run the code I'm getting an error rep(t.S[i], d[i]) : invalid 'times' argument. Also, having a problem with fit.models function of the survHE package. I updated the package and still gives the error that fit.models cannot be found.
Graft_survival_Less_than_50_non_ECD.csv