R/rhoMatrix-sigmacap_of_rhocap-dot.R

Defines functions .sigmacap_of_rhocap

#' Covariance Matrix from Correlation Matrix
#'
#' @author Ivan Jacob Agaloos Pesigan
#'
#' @param x Numeric matrix.
#'   Correlation matrix.
#' @param sd Numeric vector.
#'   Vector of standard deviations.
#' @family Correlation Functions
#' @keywords rhoMatrix correlation dot
#' @noRd
.sigmacap_of_rhocap <- function(x,
                                sd) {
  sd * x * rep(
    x = sd,
    each = dim(x)[1]
  )
}
jeksterslab/rhoMatrix documentation built on Dec. 20, 2021, 10:11 p.m.