Michael L. Collyer and Dean C. Adams. 2007. Analysis of two-state multivariate phenotypic change in ecological studies. Ecology 88:683–692.


Supplement

R code and example data for the analysis described in this paper.
Ecological Archives E088-045-S1
.

Copyright


Authors
File list (downloads)
Description


Author(s)

Michael L. Collyer and Dean C. Adams
Department of Ecology, Evolution, and Organismal Biology,
and Department of Statistics
Iowa State University
Ames, IA 50011
E-mail: collyer@iastate.edu
E-mail: dcadams@iastate.edu


File list

collyer_adams_Rcode.txt -- R code for running analysis
collyer_adams_example_data.csv -- example data to input into R routine
collyer_adams_example_xmat.csv -- coding for the design matrix used
collyer_adams_ESA_supplement.zip -- all files at once

Description

The collyer_adams_Rcode.txt file contains a procedure for performing the analysis described in Appendix A, using R. The procedure imports data and a design matrix (collyer_adams_example_data.csv and collyer_adams_example_xmat.csv are provided, and correspond to the example in Appendix A). The default number of permutations is 999, but can be changed. A matrix of random values (distances, contrasts, angles) and a results summary are created from the program. Users should be aware that importing different data sets will require altering some of the R code to accommodate their data (e.g., matrix dimensions would need to be changed).


ESA Publications | Ecological Archives | Permissions | Citation | Contacts