#' @rdname corcov
#' @export
xcov <- function(X, Y, method = c("Unbiased", "ML")) {
stopifnot(nrow(X) == nrow(Y))
method <- match.arg(method)
norm_type <- ifelse(method == "Unbiased", 0L, 1L)
ans <- xcovArma(X = X, Y = Y, norm_type = norm_type)
colnames(ans) <- colnames(Y)
rownames(ans) <- colnames(X)
return(ans)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.