Description Usage Arguments Details Value
STACMR accepts two kinds of data structure, list
format and general format. gen2list
transforms from the general
format into the list format.
1 |
data |
|
varnames |
optional |
In this format, the data are contained in a b
x
n
list where b
is the number of between-participant conditions (groups)
and n
is the number of dependent variables. Each component of the list is
itself an N
x w
matrix of observations where N
is the number of
subjects (which may vary across groups and dependent variables) and w
is
the number of within-participant conditions (fixed across groups and
dependent variables). The dependent variable may be either within-participant
or between-participant. This does not matter because the correlation between
dependent variables is assumed to be zero (although this might change in
future implementations).
This is a fixed column format organised as a matrix in which each row corresponds to an observation and each column is defined as follows:
Participant number (for identification only, not used directly)
Between-participant condition or group (if none, then set this value to 1)
Dependent variable (numbered 1, 2, and so on)
column 4 to end: Values for each within-participant condition
gen2list
returns a ngroup
x nvar
list
in which each element
is an nsub
x ncond
matrix of values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.