motmot.2.0 (version 1.1.2)

make.anc: Create design matrix (internal function)

Description

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

Usage

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. Can be specified as a column number or column name.

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

A design matrix

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.