Learn R Programming

DistatisR (version 1.1.1)

ComputeSplus: ComputeSplus

Description

Compute the compromise matrix for STATIS/DISTATIS

Usage

ComputeSplus(CubeCP, alpha)

Value

The compromise matrix computed as the alpha-weighted sum of the cross-product matrices.

Arguments

CubeCP

A 3D array of cross-product matrices.

alpha

The vector of weights

Examples

Run this code
# \donttest{
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))
ComputeSplus(D3, alpha = c(1, 0.5))
# }

Run the code above in your browser using DataLab