change_cata_format {ClustBlock}R Documentation

Change format of CATA datasets to perform CATATIS or CLUSCATA function

Description

CATATIS and CLUSCATA operate on data where the blocks of binary variables are merged horizontally. If you have a different format, you can use this function to change the format. Format=1 is for data merged vertically with the dataset of the first subject, then the second,... Format=2 is for data merged vertically with the dataset for the first product, then the second...

Usage

change_cata_format(Data, nprod, nattr, nsub, format=1, NameProds=NULL, NameAttr=NULL)

Arguments

Data

data frame or matrix. Correspond to your data

nprod

integer. Number of products

nattr

integer. Number of attributes

nsub

integer. Number of subjects.

format

integer (1 or 2). See the description

NameProds

string vector with the names of the products (length must be nprod)

NameAttr

string vector with the names of attributes (length must be nattr)

Value

The arranged data for CATATIS and CLUSCATA function

See Also

catatis, cluscata


[Package ClustBlock version 2.3.1 Index]