R/summary.ICCfit.R

Defines functions summary.ICCfit

Documented in summary.ICCfit

summary.ICCfit <-
function(object, ...){
  t <- as.data.frame(c(object$icc,object$sigma2.b,object$sigma2.w,object$mu))
  rownames(t) <- c("ICC", "Between-class variance", "Within-class variance","Mu")
  colnames(t) <- "Estimate"
  
  loglik <- as.data.frame(object$loglikelihood)
  colnames(loglik) <- ""
  rownames(loglik) <- "Log-likelihood: "
  
  res <- list(estimates = t,
              loglikelihood = loglik)
  
  class(res) <- "summary.ICCfit"
  res
}

Try the iRepro package in your browser

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

iRepro documentation built on Aug. 8, 2023, 5:13 p.m.