Description Usage Arguments Value Author(s) Examples
Computes the intra-class coefficient from a "brmsfit" model object using the entire posterior distribution
1 |
model |
A model object of class "brmsfit". Model must contains at least one random effect in order to computer an ICC value |
var |
A character string that matches a random effect parameter in the model for which ICC is computed for. |
A data frame containing the variable (var) which ICC is computed for, the posterior mean (Estimate) of ICC value, the standard deviation of the posterior distribution (Est.Error) and the two-sided 95
Fonti Kar - fonti.kar@gmail.com
1 2 3 4 5 6 7 | #Computes ICC for "ANIMAL", this represents the proportion of variance
#explained by additive genetic variation among individuals (i.e. heritability)
## Not run: get_icc(model = fit1, var = "ANIMAL")
#Computes ICC for "MOTHER", this is the proportion of variance
#explained by maternal identity (i.e maternal effects)
## Not run: get_icc(model = fit1, var = "MOTHER")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.