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)
# Truncated maximum likelihood regression with log-Weibull errors
w <- TML.noncensored(log(Cost)~log(LOS)+Adm, errors="logWeibull",
otp="adaptive", control=list(fastS=TRUE))
plot(w)
plot(w, which = 1)
plot(w, which = 2)
plot(w, which = 3)
}
Run the code above in your browser using DataLab