I ran a regression model with the Y variable (length of stay of patients in days) log10 transformed. I would like to compare the fit of the log10 transformed model with a similar regression where the Y variable is in the raw scale. As such, it would be ideal to compare residuals in the original scale (days). Some papers suggest the back-transformation using Duan's smearing estimate. How do I implement this in R? Thanks,
R
implementation are off-topic, but the concept and algorithm are not: those are explained and illustrated in the duplicate threads. $\endgroup$