File: gopherdat2.Rd

package info (click to toggle)
lme4 2.0-1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,860 kB
  • sloc: cpp: 2,543; makefile: 2
file content (65 lines) | stat: -rw-r--r-- 2,623 bytes parent folder | download
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
56
57
58
59
60
61
62
63
64
65
\name{gopherdat2}
\alias{gopherdat2}
\docType{data}
\title{
  Gopher tortoises shell remains
}
\description{
  Data of fresh Gopher tortoise shell remains \insertCite{ozgul2009upper}{lme4}.
}
\usage{data("gopherdat2")}
\format{
  A data frame with 30 observations on the following 7 variables.
  \describe{
    \item{\code{Site}}{a factor representing the sampling site.  There are 
      \code{10} levels: 
        \itemize{
          \item \code{BS} (Big Shoals State Park).
          \item \code{CB} (Camp Blanding Wildlife Management Area).
          \item \code{Cent} (privately-owned property in central Florida).
          \item \code{CF} (Cecil Field/Branan Field Wildlife and Environmental 
            Area).
          \item \code{FC} (Fort Cooper State Park).
          \item \code{FE} (Flying Eagle Wildlife Management Area).
          \item \code{GH} (Gold Head Branch State Park).
          \item \code{Old} (Perry Oldenburg Wildlife and Environmental Area).
          \item \code{Ord} (Ordway-Swisher Biological Station). 
          \item \code{TE} (Tenoroc Fish Management Area).
        }
      }
    \item{\code{year}}{a numeric vector of the sampling year.}  
    \item{\code{shells}}{a numeric vector of the number of shells found.}
    \item{\code{Area}}{a numeric vector representing site area 
      (units unknown).}
    \item{\code{density}}{a numeric vector representing population density.}
    \item{\code{prev}}{a numeric vector representing the seroprevalence 
      (frequency of antibodies to disease) of \emph{M. agassizi}. }
  }
}
\details{
  Details of the study is described in \insertCite{ozgul2009upper}{lme4} as
  follows:
  "The fieldwork was conducted between 2003 and 2006, during late spring/summer 
  (May–September). Systematic surveys were conducted to locate tortoise burrows 
  and shell remains from deceased tortoises at study sites and consisted of a 
  line of four to eight observers spaced 10 m apart walking parallel transects 
  across the study area."
}
\source{
  \insertCite{ozgul2009upper}{lme4}
}
\references{
  \insertRef{ozgul2009upper}{lme4}
}
\examples{
## Simple model gives a singular fit:
gopher_glmer <- glmer(shells ~ factor(year) + prev + offset(log(Area))
                   + (1|Site), data = gopherdat2, family = "poisson")
## The site-level variance for this model is indeed zero:
VarCorr(gopher_glmer)
## So a Poisson GLM gives the same answer here:
gopher_glm <- glm(shells ~ factor(year) + prev + offset(log(Area)),
                  data = gopherdat2, family = "poisson")
all.equal(fixef(gopher_glmer), coef(gopher_glm))
}
\keyword{datasets}