make.eqn
takes a model file in the "easy" format and creates a model file in the EQN format. make.mdt
takes a data vector and produces an .mdt data file.
make.eqn(model.filename, eqn.filename)
make.mdt(data, mdt.filename, index, prefix = "dataset")
A character vector
specifying the location and name of the model file in the easy
format.
A character vector specifying the location and name of the target .eqn file.
A vector, matrix or data.frame containing an individual data set to write to a .mdt file
character vector specifying name and location of mdt file to be written.
index or second word written to the header of the mdt file. Ignored if data
is a matrix or data.frame.
first word or prefix written to the mdt file. Default is dataset
Nothing
eqn and mdt files are the usual files used for programs to fit MPTs. You can use these functions to compare the results of MPTinR with other prgrams such as HMMTree or multiTree.
For more info on the different formats see: http://www.psychologie.uni-freiburg.de/Members/singmann/R/mptinr/modelfile
Note that these function do not add the endings .eqn or .mdt to the filename.
Since the MPTinR 0.9.4 make.mdt
writes a single mdt file from a matrix or data.frame separating the participants via ===
.
More information on the .eqn format in e.g.: Stahl, C., & Klauer, K. C. (2007). HMMTree: A computer program for latent-class hierarchical multinomial processing tree models. Behavior Research Methods, 39, 267-273.
fit.mpt
for the main function of MPTinR