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")
reg <- lm(log(Cost)~log(LOS)+Adm)
comp <- fits.compare(least.squares=reg, TML.logWeibull=lwrob)
plot(comp, leg.position=c("topleft", "topleft", "bottomleft"), xplots=TRUE)
}
Run the code above in your browser using DataLab