Estimating intraclass correlation (ICC) through ANOVA

rA(epidemic = NULL, data = NULL, GEValues = NULL, sampledOnly = TRUE,
  activeOnly = FALSE, tMin = 0, tMax = Inf, firstN = Inf, lastN = Inf,
  by = list("gene"), report = FALSE, includePop = TRUE)

Arguments

epidemic

a list of objects returned from simulateEpidemic

data

NULL or a data.table such as the element gen in an epidemic list

GEValues

genotype-environment trait values for calculating the z-values; if NULL it is assumed that the z-values are already in data, or epidemic$gen.

sampledOnly, activeOnly, tMin, tMax, firstN, lastN

parameters passed to extractPop

by

a character string which can be evaluated as expression in the by clause of data.table the times of sampling for the individuals; otherwise, this would be the times of infection.

report

a logical indicating what result should be returned. If FALSE, only the ICC value is returned, otherwise a list of statistics from the ANOVA calculation

Value

See report parameter