R/lqmm_theta.z.dim.R

Defines functions theta.z.dim

Documented in theta.z.dim

theta.z.dim <- function(type, n) {
  switch(type,
    "pdIdent" = 1,
    "pdDiag" = n,
    "pdCompSymm" = if (n == 1) 1 else 2,
    "pdSymm" = n * (n + 1) / 2
  )
}
gforge/lqmm_gforge documentation built on Dec. 20, 2021, 10:42 a.m.