R/1.4.fitModelWithSigmaIdentity.R

Defines functions fitModelWithSigmaIdentity

fitModelWithSigmaIdentity <- function(modelComponents) {
  explanatoryMatrix <- as.matrix(modelComponents$explanatory[, -1])
  fit <- mmcsd(modelComponents$response$value ~ explanatoryMatrix,
    waves = modelComponents$waves$value, ids = modelComponents$ids$value, weights = modelComponents$weights$value,
    stratum = modelComponents$stratum$value, cluster = modelComponents$cluster$value, sigma = "identity"
  )

  return(fit)
}

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.