R functions and scripts
Below are some of my R functions that I use quite frequently for the various things I do. I'll be adding more to this list, but for now, some basic ones. You can download the R files from below.
geoMean - compute a geometric mean of linear variables for each specimen/taxon
lm.Nresponse - fit N linear models to N number of response variables (Y) against a single predictor variable (X)
pair.cor - perform pair-wise correlation tests and adjust p-values for multiple comparisons
sizeAdj - size adjust linear variables using either Mosimann transformation or regression methods
taxonMean - compute mean values of variables for each taxon in a matrix containing multiple specimens of multiple taxa
taxonMedian - compute median values of variables for each taxon in a matrix containing multiple specimens of multiple taxa