if (FALSE) {
data(D243)
Cost <- D243$Cost # Cost (Swiss francs)
LOS <- D243$LOS # Length of stay (days)
Adm <- D243$Typadm; Adm <- (Adm==" Urg")*1 # Type of admission
# (0=on notification, 1=Emergency)
lwrob <- TML.noncensored(log(Cost)~log(LOS)+Adm, errors="logWeibull")
grob <- TML.noncensored(log(Cost)~log(LOS)+Adm)
reg <- lm(log(Cost)~log(LOS)+Adm)
fits.compare(least.squares=reg, TML.logWeibull=lwrob, TML.Gaussian=grob)
}
Run the code above in your browser using DataLab