get_icc: Get intra-class correlation

Description Usage Arguments Value Author(s) Examples

View source: R/get_icc.R

Description

Computes the intra-class coefficient from a "brmsfit" model object using the entire posterior distribution

Usage

1

Arguments

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.

Value

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

Author(s)

Fonti Kar - fonti.kar@gmail.com

Examples

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")

fontikar/circus documentation built on Aug. 25, 2020, 5:17 a.m.