GetCmat: GetCmat

View source: R/GetCmat.R

GetCmatR Documentation

GetCmat

Description

Computes the RV coefficient matrix

Usage

GetCmat(CubeCP, RV = TRUE)

Arguments

CubeCP

A 3D array of cross-product matrices

RV

Boolean, if TRUE, GetCmat computes the matrix of the RV coefficients between all the slices of the 3D array, otherwise, GetCmat computes a scalar product.

Value

A matrix of either RV coefficients or scalar products.

Examples


D3 <- array(c(0, 1, 2, 1, 0, 1, 2, 1, 0, 
              0, 3, 3, 3, 0, 3, 3, 3, 0), 
            dim = c(3, 3, 2))
GetCmat(D3)             


DistatisR documentation built on Dec. 5, 2022, 9:05 a.m.