cleanDataCATA | R Documentation |
cleanDataCATA
cleans a CATA
Brick
of data prior to a CATA analysis.
The CATA Brick can be a list or an array. The list can be
obtained, for example, from PTCA4CATA::read.xls.CATA
.
If so,
this list should include $CATA.Brick
.
If the data is an array, it should be
a Products * Variables * Judges array.
The level of "almost empty" is defined by the parameter
threshold4cleaning
(set by default to 10
cleanDataCATA(listCATA, threshold4cleaning = NULL)
listCATA |
could be 1) a List as obtained,
for example, from
|
threshold4cleaning |
(default = 10 of choices for a variable to be kept. |
A list with $CATA.Brick
a "Product by Variables by Judges" Brick of 0/1 data
(x(i,j,k) = 1
if Judge k choses Variable j
to describe Product i, 0 if not);
$CATA.CT
:
A "Products by Variables" cleaned contingency table
(columns whose sum is equal to or below
the threshold are dropped) that gives the number of
Judges who selected this Variable for that Product.
$nProducts
the number of Products,
$nJudges
the number of Judges, and
$nVars
the number of Variables kept.
Herve Abdi
## Not run: data('beersBeTACATA') rawCubeOfData <- beersBeTACATA$rawBrick.CATA cleanedListOfData <- cleanDataCATA(rawCubeOfData, threshold4cleaning = 5) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.