| epil2 {glmmTMB} | R Documentation |
Seizure Counts for Epileptics - Extended
Description
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.
Usage
epil2
Format
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.
- Visit
(rep(1:4,59) - 2.5) / 5.- Base
log(base/4).- Age
log(age).
References
Booth, J.G., G. Casella, H. Friedl, and J.P. Hobert. (2003) Negative binomial loglinear mixed models. Statistical Modelling 3, 179–191.
Examples
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)
[Package glmmTMB version 1.1.9 Index]