| epil2 | R Documentation |
Extended version of the epil dataset of the MASS package.
The three transformed variables Visit, Base, and
Age used by Booth et al. (2003) have been added to epil.
epil2
A data frame with 236 observations on the following 12 variables:
yan integer vector.
trta factor with levels "placebo" and
"progabide".
basean integer vector.
agean integer vector.
V4an integer vector.
subjectan integer vector.
periodan integer vector.
lbasea numeric vector.
lagea numeric vector.
(rep(1:4,59) - 2.5) / 5.
log(base/4).
log(age).
Booth, J.G., G. Casella, H. Friedl, and J.P. Hobert. (2003) Negative binomial loglinear mixed models. Statistical Modelling 3, 179–191.
epil2$subject <- factor(epil2$subject)
op <- options(digits=3)
(fm <- glmmTMB(y ~ Base*trt + Age + Visit + (Visit|subject),
data=epil2, family=nbinom2))
meths <- methods(class = class(fm))
if((Rv <- getRversion()) > "3.1.3") {
funs <- attr(meths, "info")[, "generic"]
funs <- setdiff(funs, "profile") ## too slow! pkgdown is trying to run this??
for(fun in funs[is.na(match(funs, "getME"))]) {
cat(sprintf("%s:\n-----\n", fun))
r <- tryCatch( get(fun)(fm), error=identity)
if (inherits(r, "error")) cat("** Error:", r$message,"\n")
else tryCatch( print(r) )
cat(sprintf("---end{%s}--------------\n\n", fun))
}
}
options(op)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.