This is an internal function to generate the design matrix required to define different means for each hypothesised rate category.
make.anc(y, x, data = NULL, common.mean = FALSE)
The response variable - typically a continuous trait.
The explanatory (discrete) variable used to define the hypothesised rate categories. Can be specified as a column number or column name.
A data frame containing (minimally) the x and y variables as columns with species names as rownames.
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..
A design matrix
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.