Learn R Programming

evolqg (version 0.3-4)

AlphaRep: Alpha repeatability

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)

Value

Alpha repeatability for correlation matrix

Arguments

cor.matrix

Correlation matrix

sample.size

Sample size used in matrix estimation

Author

Diogo Melo, Guilherme Garcia

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