Repository navigation
Expand file tree
/
Copy pathepil2.Rd
More file actions
55 lines (55 loc) · 1.84 KB
/
Copy pathepil2.Rd
File metadata and controls
55 lines (55 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
\name{epil2}
\title{Seizure Counts for Epileptics - Extended}
\alias{epil2}
\docType{data}
\description{
Extended version of the \code{epil} dataset of the \pkg{MASS} package.
The three transformed variables \code{Visit}, \code{Base}, and
\code{Age} used by Booth et al. (2003) have been added to \code{epil}.
}
\usage{epil2}
\format{
A data frame with 236 observations on the following 12 variables:
\describe{
\item{\code{y}}{an integer vector.}
\item{\code{trt}}{a factor with levels \code{"placebo"} and
\code{"progabide"}.}
\item{\code{base}}{an integer vector.}
\item{\code{age}}{an integer vector.}
\item{\code{V4}}{an integer vector.}
\item{\code{subject}}{an integer vector.}
\item{\code{period}}{an integer vector.}
\item{\code{lbase}}{a numeric vector.}
\item{\code{lage}}{a numeric vector.}
\item{Visit}{\code{(rep(1:4,59) - 2.5) / 5}.}
\item{Base}{\code{log(base/4)}.}
\item{Age}{\code{log(age)}.}
}
}
\references{
Booth, J.G., G. Casella, H. Friedl, and J.P. Hobert. (2003)
Negative binomial loglinear mixed models.
\emph{Statistical Modelling} \bold{3}, 179--191.
}
\examples{
\donttest{
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)
}
}
\keyword{datasets}