Learn R Programming

evolqg (version 0.3-4)

CalcRepeatability: Parametric per trait repeatabilities

Description

Estimates the variance in the sample not due to measurement error

Usage

CalcRepeatability(ID, ind.data)

Value

vector of repeatabilities

Arguments

ID

identity of individuals

ind.data

individual measurements

Author

Guilherme Garcia

References

Lessels, C. M., and Boag, P. T. (1987). Unrepeatable repeatabilities: a common mistake. The Auk, 2(January), 116-121.

Examples

Run this code
num.ind = length(iris[,1])
ID = rep(1:num.ind, 2)
ind.data = rbind(iris[,1:4], iris[,1:4]+array(rnorm(num.ind*4, 0, 0.1), dim(iris[,1:4])))
CalcRepeatability(ID, ind.data)

Run the code above in your browser using DataLab