R/1.4.4.main.R

Defines functions getSigmaExchangeable

getSigmaExchangeable <- function(modelComponents) {
  fit <- fitModelWithSigmaIdentity(modelComponents)
  rho <- rhoCalculation(fit)

  sigma <- matrix(rho, ncol = fit$info$T, nrow = fit$info$T)
  diag(sigma) <- 1

  attr(sigma, "type") <- "exchangeable"
  attr(sigma, "rho") <- rho

  return(sigma)
}

Try the Mmcsd package in your browser

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

Mmcsd documentation built on March 31, 2023, 7:23 p.m.