I know that plot(fit) can visually compare the estimated parametric survival curve with a nonparametric Kaplan-Meier curve, but I'm wondering if it's possible to do a type of "goodness of fit test" to check whether a parametric AFT model fits the data well?
For example, the afttest package provides a global goodness of fit test for semiparametric AFT models fit from the aftgee R package (small pvalue means there's evidence that your model does not fit the data well). I'm wondering if it would be possible to make a similar goodness of fit test for flexsurvreg?
I know these types of tests are not super useful when the sample size is massive as the GOF pvalue is almost always < 0.05.... but could still be useful for more moderately sized datasets.
I know that
plot(fit)can visually compare the estimated parametric survival curve with a nonparametric Kaplan-Meier curve, but I'm wondering if it's possible to do a type of "goodness of fit test" to check whether a parametric AFT model fits the data well?For example, the afttest package provides a global goodness of fit test for semiparametric AFT models fit from the
aftgeeR package (small pvalue means there's evidence that your model does not fit the data well). I'm wondering if it would be possible to make a similar goodness of fit test forflexsurvreg?I know these types of tests are not super useful when the sample size is massive as the GOF pvalue is almost always < 0.05.... but could still be useful for more moderately sized datasets.