R/icc.est.R

Defines functions icc.est

# Internal documentation -------------------------------------------------------
#
# ICC

icc.est <- function(model) {
  u <- as.data.frame(VarCorr(model))$sdcor[1]
  e <- sigma(model)
  icc <- u / (u + e)
  return(icc)
}

Try the smicd package in your browser

Any scripts or data that you put into this service are public.

smicd documentation built on Nov. 19, 2023, 5:12 p.m.