MPTinR (version 1.11.0)

make.eqn: Creates an EQN model file oir MDT data file

Description

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.

Usage

make.eqn(model.filename, eqn.filename)
make.mdt(data, mdt.filename, index, prefix = "dataset")

Arguments

model.filename

A character vector specifying the location and name of the model file in the easy format.

eqn.filename

A character vector specifying the location and name of the target .eqn file.

data

A vector, matrix or data.frame containing an individual data set to write to a .mdt file

mdt.filename

character vector specifying name and location of mdt file to be written.

index

index or second word written to the header of the mdt file. Ignored if data is a matrix or data.frame.

prefix

first word or prefix written to the mdt file. Default is dataset

Value

Nothing

Details

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 ===.

References

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.

See Also

fit.mpt for the main function of MPTinR