|
MFORMS= reformat input data and multiple data forms |
Top Up Down A A |
|
MFORMS= supports the reformatting of input data records, and also equating multiple input files in different formats, such as alternate forms of the same test. Data after END NAMES or END LABELS is processed first, as is data specified by DATA= in the core control file.
Data reformatted by MFORMS= can be accessed, viewed, edited and "saved as" permanently using the "Edit" pull-down menu. It has a file name of the form: ZMF.....txt
Here is the layout:
Example 1: See Exam10c.txt
Example 2: Three data files with common items and one MCQ scoring key.
Datafile1.txt: (Items 1-6) TOMY ABCDAB BILL BCDADD
Datafile2.txt (Items 1-3 and 7-9) TOTO BBADAB MOULA BADADD
Datafile3.txt (Items 1-3 and 10-12) IHSANI ACCDAB MALIK CBDDCD
Control file: TITLE="Multiple MCQ forms with one scoring key" NI=12 ; 12 ITEMS IN TOTAL ITEM1=11 NAME1=1 CODES="ABCD" KEY1=BACCADACADDA mforms=* data=datafile1.txt ; name of data file L=1 ; one line per person P1-10=1 ; person label in columns 1-10 I1-3=11 ; items 1-3 in columns 11-13 I4-6=14 ; items 4-6 in columns 14-16 # data=datafile2.txt L=1 P1-10=1 I1-3=11 I7-9=14 ; items 8-9 in columns 14-16 # data=datafile3.txt L=1 P1-10=1 I1-3=11 I10-12=14 ; items 10-12 in columns 14-16 * &END ; item identification here END NAMES
Here is how the data appear to Winsteps for analysis: TOMY ABCDAB BILL BCDADD TOTO BBA DAB MOULA BAD ADD IHSANI ACC DAB MALIK CBD DCD
Example 3: Test 1 is a 4-item survey. Test 2 is a 4-item survey its first two items are the last two items on Test 1. Those items share the same rating scale, called "C". The other 4 items also share another rating scale, called "U".
Datafile1.txt: (Items 1-4) TOMY 3241 BILL 3352
Datafile2.txt (Items 3-4 and 5-6) TOTO 3325 MOULA 2143
TITLE="Combing two surveys" NI=6 ; 6 ITEMS IN TOTAL ITEM1=11 NAME1=1 CODES="12345" ; all valid codes on all the survey items ISGROUPS = UUCCUU ; assigns items to rating scales mforms=* data=datafile1.txt ; name of data file L=1 ; one line per person P1-10=1 ; person label in columns 1-10 I1-4=11 ; items 1-4 in columns 11-14 # data=datafile2.txt L=1 P1-10=1 I1-2=13 ; items 1-2 on the second survey are items 3 and 4 on the first survey I3-4=15 ; items 3-4 in columns 15-16 # &END ; item identification here END NAMES
Here is how the data appear to Winsteps for analysis: TOMY 3241 ; items 1-2 unique, items 3-4 common BILL 3352 TOTO 3325 ; items 3-4 common, items 5-6 unique MOULA 2143
Example 4: Test 1 is a 4-item survey. Test 2 is a 4-item survey with two items in common with Test 1 which are to be anchored to their Test 1 values.
Test 1 has 4 rating scale items. Each item has its own partial-credit structure: title = "Test 1" item1 = 1 ; items start in column 1 ni = 4 ; 4 items name1 = 5 ; person label starts in column 5 namlen = 14 ; length of person name codes = 01234 ; rating scale ISGROUPS = 0 ; each item has its own rating scale structure stkeep = YES ; this is probably what you want for these type of data data = data1.txt ifile = items1if.txt ; item calibrations from Test 1 for Test 2 (output) sfile = items1sf.txt ; structure calibrations from Test 1 for Test 2 (output) &END Test 1 item 1 Test 1 item 2 Test 1 item 3 Test 1 item 4 END NAMES
data1.txt is: 1234Person 1-1 3212Person 1-2 ......
Test 2 has 4 items. 1 and 4 are new - we will call these items 5 and 6 of the combined Test 1 and 2. Item 2 is Test 1 item 4, and item 3 is Test 1 item 2. title = "Test 2 (formatted to match Test 1)" item1 = 1 ; items start in column 1 ni = 6 ; 4 items in Test 1 + 2 more in Test 2 name1 = 7 ; person label starts in column 7 namlen =14 ; length of person name codes = 01234 ; rating scale stkeep = YES ; this is probably what you want for these type of data ISGROUPS = 0 ; each item has its own rating scale structure iafile = items1if.txt ; item calibrations from Test 1 (input - unchanged) safile = items1sf.txt ; structure calibrations from Test 1 (input - unchanged) MFORMS = * ; reformat the Test 2 data to align with Test 1 data = data2.txt ; the name of an input data file L = 1 ; there is 1 line in input data file for each data record I2 = 3 ; response to item 2 of Test 1 is in 3 of the data2.txt file I4 = 2 ; response to item 4 of Test 1 is in 2 of the data2.txt file I5 = 1 ; item 5 is in column 1 of data2.txt I6 = 4 ; item 6 is in column 4 of data2.txt P1-14 = 5 ; the first character of person label is in column 5 of data2.txt for 14 columns. * ; end of mforms= command &END Test 1 item 1 (blank in Test 2) Test 1 item 2 (Test 2 item 3) Test 1 item 3 (blank in Test 2) Test 1 item 4 (Test 2 item 2) Item 5 (not in Test 1, Test 2 item 1) Item 6 (not in Test 1, Test 2 item 4) END NAMES
data2.txt is: 5426Person 2-1 1234Person 2-2 ....
The formatted file (see Edit pull-down menu MFORMS==) is 2 456Person 2-1 3 214Person 2-2 .... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Help for WINSTEPS® Rasch Measurement Software: www.winsteps.com.