R/gammaN-gamma-mvn-dot.R

Defines functions .GammaN

#' Asymptotic Covariance Matrix of the Sample Covariance Matrix
#' (Multivariate Normal Distribution)
#'
#' @author Ivan Jacob Agaloos Pesigan
#'
#' @param sigmacap Numeric matrix.
#'   Covariance matrix.
#' @param pinv_of_dcap Numeric matrix.
#'   Moore-Penrose inverse of the duplication matrix.
#'
#' @family gammaN Functions
#' @keywords gammaN gamma internal
#' @noRd
.GammaN <- function(sigmacap,
                    pinv_of_dcap) {
  return(
    2 * pinv_of_dcap %*% (
      tcrossprod(
        kronecker(
          sigmacap,
          sigmacap
        ),
        pinv_of_dcap
      )
    )
  )
}

Try the betaSandwich package in your browser

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

betaSandwich documentation built on Oct. 15, 2023, 1:07 a.m.