make.anc: Create design matrix (internal function)

Description Usage Arguments Value Author(s) References

View source: R/make.anc.R

Description

This is an internal function to generate the design matrix required to define different means for each hypothesised rate category.

Usage

1
make.anc(y, x, data = NULL, common.mean = FALSE)

Arguments

y

The response variable - typically a continuous trait.

x

The explanatory (discrete) variable used to define the hypothesised rate categories.

data

A data frame containing (minimally) the x and y variables as columns with species names as rownames.

common.mean

a logical specififying whether each rate category should have its own mean (common.mean=FALSE) or all categories should have the same mean (common.mean=FALSE). See Thomas et al. (2009) for a discussion on the impact of assumptions about mean on rate estimates.

Value

x

A design matrix

Author(s)

Gavin Thomas

References

Thomas GH, Freckleton RP, & Szekely T. 2006. Comparative analyses of the influence of developmental mode on phenotypic diversification rates in shorebirds. Proceedings of the Royal Society B 273, 1619-1624.

Thomas GH, Meiri S, & Phillimore AB. 2009. Body size diversification in Anolis: novel environments and island effects. Evolution 63, 2017-2030.


ghthomas/motmot documentation built on July 31, 2018, 12:11 a.m.