projMap2Cube | R Documentation |
distatis
analysis.projMap2Cube
reshapes a data matrix from projective mapping
into a brick of data for a distatis
analysis.
With I
products, J
variables, and
K
blocks (assessors),
the original data can be 1) "flat"
(e.g., I
rows as products,
columns as K
blocks of J
Variables)
or 2) "long"
"flat" (e.g., K
blocks of
I
rows as products by assessors,
columns as J
Variables).
projMap2Cube(Data, shape = "flat", nVars = 2, nBlocks = NULL)
Data |
a data matrix that can be
|
shape |
(Default: |
nVars |
Number of variables (default = 2),
relevant only when |
nBlocks |
(Default = |
the output projMap2Cube
(i.e., the brick of data)
is used as input to the function cubeOfCov
that will
create the cubeOfDistance (or covariance) that will be used
as input of distatis
.
projMap2Cube
guesses the
names of the products and variables from the
rownames and columns of the data, but this guess
needs to be verified.
An I
by J
by K
array (i.e., a brick)
to be used to create a cube of distance or covariance.
Herve Abdi
# Use the data from the BeersProjectiveMapping dataset
data("BeersProjectiveMapping")
# Create the I*J_k*K brick of data
dataBrick <- projMap2Cube(BeersProjectiveMapping$ProjectiveMapping,
shape = 'flat', nVars = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.