How do I load data into Mplus?
In Mplus, a data set can contain a maximum of 500 variables; there is
no limit on the number of observations. Mplus reads ASCII text files
delimited by a space, tab, or comma. The following example is a text
file delimited with a comma, with file extension
.dat :
Suppose you have data stored in c:\temp\mplus\stat.dat
and want to load them into Mplus. First, specify an ASCII text file in
the FILE IS option of a DATA
command. Enclose path and file name with quotation marks:
DATA:
FILE IS "c:\temp\mplus\stat.dat";
FORMAT IS FREE;
VARIABLE:
NAMES ARE id midterm final sum average grade;
The FORMAT statement describes the format of the data to be read. The
text FORMAT IS FREE; is a default option and thus can be
omitted. If you have a fixed format rather than delimited formats
(FORMAT IS FREE;), include FORTRAN-style formats instead
of FREE in the FORMAT IS option. The
VARIABLE command describes variables to be read.
For more about statistical and mathematical software, email the UITS Stat/Math Center, visit the center's web page, or phone 812-855-4724 (IUB) or 317-278-4740 (IUPUI). The center is located in Bloomington at 410 N. Park Avenue, and is open for consultation by appointment Monday-Friday 9am-5pm.
Last modified on December 18, 2009.







