Learn R Programming

evolqg (version 0.1-7)

AlphaRep: Alpha Repetability

Description

Calculates the matrix repeatability using the equation in Cheverud 1996 Quantitative genetic analysis of cranial morphology in the cotton-top (Saguinus oedipus) and saddle-back (S. fuscicollis) tamarins. Journal of Evolutionary Biology 9, 5-42.

Usage

AlphaRep(cor.matrix, sample.size)

Arguments

cor.matrix
Correlation matrix
sample.size
Sample size used in matrix estimation

Value

  • Alpha repeatability for correlation matrix

References

Cheverud 1996 Quantitative genetic analysis of cranial morphology in the cotton-top (Saguinus oedipus) and saddle-back (S. fuscicollis) tamarins. Journal of Evolutionary Biology 9, 5-42.

See Also

MonteCarloStat, BootstrapRep

Examples

Run this code
#For single matrices
cor.matrix <- RandomMatrix(10)
AlphaRep(cor.matrix, 10)
AlphaRep(cor.matrix, 100)
#For many matrices
mat.list <- RandomMatrix(10, 100)
sample.sizes <- floor(runif(100, 20, 50))
unlist(Map(AlphaRep, mat.list, sample.sizes))

Run the code above in your browser using DataLab