perrisodactyla: Example dataset for the CAIC package

perissodactylaR Documentation

Example dataset for the CAIC package

Description

This is a comparative dataset on Perissodactyla taken from the examples include with the original CAIC program.

Usage

data(shorebird)

Format

The datafile contains a phylogeny (perissodactyla.tree) of 18 perissodactyl species as a 'phylo' object from the ape library. The tip names are the binomial names of the species. The file also contains a data frame (perissodactyla.data) of variables 5 variables for 13 of those species:

Binomial

The species binomial name.

log.female.wt

Log female weight

log.gestation.length

Log gestation length

log.neonatal.wt

Log neonatal weight

Territoriality

A factor indicating whether or not the species displays territorial behaviour.

The dataset is incomplete - it does not include data for each species in the phylogeny and contains missing values. See the examples for the behaviour of the 'comparative.data' function in handling missing data.

References

Purvis, A. and Rambaut, A. (1995). Comparative Analysis by Independent Contrasts (CAIC) User's Guide.

See Also

caic, pgls

Examples

data(perissodactyla)
# default behaviour is to omit incomplete data rows
(perisso <- comparative.data(perissodactyla.tree, perissodactyla.data, Binomial))
# but this can be turned off
(perisso <- comparative.data(perissodactyla.tree, perissodactyla.data, Binomial, na.omit=FALSE))
na.omit(perisso)

caper documentation built on Sept. 26, 2023, 5:10 p.m.