cleanDataCATA: Clean a Brick of Data prior to a CATA analysis

View source: R/CleanZeData.R

cleanDataCATAR Documentation

Clean a Brick of Data prior to a CATA analysis

Description

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

Usage

cleanDataCATA(listCATA, threshold4cleaning = NULL)

Arguments

listCATA

could be 1) a List as obtained, for example, from read.xls.CATA, or 2) a Products * Variables * Judges array (with only 0/1 values).

threshold4cleaning

(default = 10 of choices for a variable to be kept.

Value

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.

Author(s)

Herve Abdi

Examples

## Not run: 
data('beersBeTACATA')
rawCubeOfData     <- beersBeTACATA$rawBrick.CATA
cleanedListOfData <- cleanDataCATA(rawCubeOfData, threshold4cleaning =  5)

## End(Not run)

HerveAbdi/PTCA4CATA documentation built on July 17, 2022, 5:41 a.m.