Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

lizards

Habitat Preferences of Lizards


Description

The lizards data frame has 23 rows and 6 columns. Variables grahami and opalinus are counts of two lizard species at two different perch heights, two different perch diameters, in sun and in shade, at three times of day.

Usage

data(lizards)

Format

This data frame contains the following columns:

grahami

count of grahami lizards

opalinus

count of opalinus lizards

height

a factor with levels "<5ft", ">=5ft"

diameter

a factor with levels "<=2in", ">2in"

light

a factor with levels "sunny", "shady"

time

a factor with levels "early", "midday", "late"

Source

McCullagh, P. and Nelder, J. A. (1989) Generalized Linear Models (2nd Edition). London: Chapman and Hall.

Originally from

Schoener, T. W. (1970) Nonsynchronous spatial overlap of lizards in patchy habitats. Ecology 51, 408–418.

Examples

data(lizards)
glm(cbind(grahami, opalinus) ~ height + diameter + light + time,
    family = binomial, data=lizards)
brglm(cbind(grahami, opalinus) ~ height + diameter + light + time,
    family = binomial, data=lizards)

brglm

Bias Reduction in Binomial-Response Generalized Linear Models

v0.7.2
GPL (>= 2)
Authors
Ioannis Kosmidis [aut, cre] (<https://orcid.org/0000-0003-1556-0302>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.