Closed mikesweeting closed 2 years ago
Thanks Mike - looks like a nice feature and a lot of work has gone into it! Could you try to get it passing R CMD check --as-cran
? That includes various unit tests - looks like the change to normbootfn.flexsurvreg
breaks something in test_rtrunc.R
for example.
Thanks Chris, now passes R CMD checks. I've fixed a bug in normbootfn.flexsurvreg that caused it to crash with rtrunc. I haven't added unit tests for the standsurv commands yet but can do if you are happy to incorporate this branch.
I've developed a function standsurv.flexsurvreg for calculating standardized measures from fitted flexsurv objects, and a corresponding plot function. There's some documentation added with examples. Syntax is a mixture of summary.flexsurvreg and Stata's standsurv command. Some further beta testing is probably needed.