R/betaSandwich-acov-sem-inverse-dot.R

Defines functions .ACovSEMInverse

#' Inverse of The Asymptotic Covariance Matrix of the
#' Standardized Parameter Vector
#'
#' @author Ivan Jacob Agaloos Pesigan
#'
#' @param jcap Numeric matrix.
#'   Jacobian matrix of the half-vectorization
#'   of the model-implied covariance matrix
#'   with respect to the standardized parameter vector.
#' @param acov Numeric matrix.
#'   Asymptotic covariance matrix of the sample covariance matrix.
#'
#' @family Beta Sandwich Functions
#' @keywords betaSandwich acov internal
#' @noRd
.ACovSEMInverse <- function(jcap,
                            acov) {
  return(
    t(jcap) %*% chol2inv(
      chol(acov)
    ) %*% jcap
  )
}

Try the betaMC package in your browser

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

betaMC documentation built on June 24, 2024, 9:08 a.m.