Stahl, C. & Klauer, K.C. (2007). HMMTree: A computer program for hierarchical multinomial processing tree models. Behavior Research Methods, 39, 267- 273.
Klauer, K.C. (2006). Hierarchical multinomial processing tree models: A latent-class approach. Psychometrika, 71, 1 - 31.
Once you have successfully loaded a model and data file, the 'Run' button will be enabled.
The EQN format used for this program is equivalent to the format used by AppleTree and MBT.
An EQN file specifies the equations of a multinomial model.
The first line gives the number of equations in the model. Line 2 to line number of equations + 1 contain the model's equations.
An equation line contains three fields, separated by a space:
16 1 1 c1*r1 1 4 c1*(1-r1) 1 2 (1-c1)*u1*u1 1 3 (1-c1)*u1*(1-u1) 1 3 (1-c1)*(1-u1)*u1 1 4 (1-c1)*(1-u1)*(1-u1) 2 5 a1 2 6 (1-a1) 3 7 c2*r2 3 10 c2*(1-r2) 3 8 (1-c2)*u2*u2 3 9 (1-c2)*u2*(1-u2) 3 9 (1-c2)*(1-u2)*u2 3 10 (1-c2)*(1-u2)*(1-u2) 4 11 a2 4 12 (1-a2)The equation format is defined as follows:
equation ::= term | equation*term term ::= parameter | (1-parameter)
The MDT data set consists of a data set description on the first line, followed by a line for each category, containing its number and its frequency, separated by a space. The end of a data set is marked by three equal signs. A file can contain multiple data sets.
An example of an MDT file with aggregated data:
Participants 1-3 1 8 2 1 3 7 4 13 5 7 ===It is used by AppleTree, GPT and MBT. These programs do not compute hierarchical multinomial models and thus do not require individuals' data sets. You cannot use MDT files from these programs to compute hierarchical multinomial models! To be able to use the MDT format to compute hierarchical multinomial models, individuals' category frequencies have to be provided as separate data sets.
Participant 1 1 4 2 0 3 1 4 5 5 2 === Participant 2 1 3 2 0 3 4 4 2 5 3 === Participant 3 1 1 2 1 3 2 4 6 5 2 ===Category labels have no relevance for computation and may be omitted. If present, those category labels given with the first individual's data set are displayed.
The DAT format allows you to easily use data from other statistics software for hierarchical multinomial model estimation.
It basically consists of a matrix of individuals' category frequencies.
The first line of a DAT file is interpreted as data set description. It can contain labels for each category or, alternatively, a description of the data set.
Each additional line is interpreted as an individual's set of category frequencies. Category frequencies are read from left to right. The first value is assigned to category 1, the second value is assigned to category 2, etc.
Values on a line have to be separated by (one or multiple) TAB(s) or space(s).
A DAT file may contain individuals' numbers or codes as the first value of each line. if the second line of a DAT file contains one more value (delimited by tabs or spaces) than the model contains categories, the first value in each line is interpreted as a participant code or number.
An example with category labels:
A B C D E 4 0 1 5 2 3 0 4 2 3 1 1 2 6 2An example with data set description:
Subjects 1-3: 4 0 1 5 2 3 0 4 2 3 1 1 2 6 2An example with category and participant labels:
A B C D E S1 4 0 1 5 2 S2 3 0 4 2 3 S3 1 1 2 6 2The following SPSS command provides you with a DAT file of your data:
SAVE TRANSLATE OUTFILE='filename.dat' /TYPE=TAB /MAP /REPLACE /FIELDNAMES.
Christoph Stahl & Karl Christoph Klauer
Institute for Psychology
Albert-Ludwigs-Universitaet Freiburg
D-79085 Freiburg i. Br.
Germany
E-Mail: stahl@psychologie.uni-freiburg.de