DataCheckMark2Cube | R Documentation |
DataCheckMark2Cube:
Create a cube of data from the results of a pick one
descriptor to describe stimuli.
The result of the check mark task is a
data frame stored in DataChecks
.
These data correspond to participants matching one descriptor to
each stimulus of a set of stimuli, this task is called
pick-1, check-1, or BeTA (BEst That Apply).
The Stimuli are the columns of DataChecks
,
the Participants are the rows of DataChecks
, and
the Descriptors are the numbers in DataChecks
(i.e., 5 for X[2,3] means that Participant 2,
chose Descriptor 5 for Stimulus 3).
DataCheckMark2Cube(DataChecks, NameOfDescriptor = NULL)
DataChecks |
A Stimuli by Participants table of checks The Stimuli are the columns of DataChecks, The Participants are the rows of DataChecks, The Descriptors are the numbers in DataChecks (i.e., 5 for X[2,3] means that Participant 2, chose Descriptor 5 for Stimulus 3) |
NameOfDescriptor |
a length K vector of names of
the descriptors. if |
a Stimuli * Descriptors * Participants brick (i.e., an array) of counts.
Hervé Abdi
# use the colorOfMusic data set. See help(colorOfMusic) data("colorOfMusic") cubeOfMusic <- DataCheckMark2Cube( colorOfMusic$participantsChoice, colorOfMusic$colorInformation[,1]) # cubeOfMusic is an array with dimensions: # 10 (colors) * 9 (pieces of music) * 22 (participant)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.