Reading BIGSTEPS Output into SPSS

Here is SPSS code for reading in BIGSTEPS output. Use your web-browsers "Save As" menu option to copy this code to disk.

BIGSTEPS output files accessed in the SPSS DATA LIST command must be the files written out by BIGSTEPS using the IFILE= and PFILE= control variables.

**************************************************************************
This is for person output file; item output file info below.

***
* Part One: Read in a BIGSTEPS person output file. Part One may be the only part of this
* SPSS syntax that some users may be interested in. All of the variables entered after
* PTBISER are optional indicators that users can place within the person ID field to
* facilitate group comparisons. The remainder of the code 1) reads in
* another, similar, BIGSTEPS file, one that has measures on the same persons made with a
* different instrument; 2) merges the first and second files on the basis of a common
* record number for each case; and 3) selects cases for study based on BIGSTEPS' estimate
* status indicator.

DATA LIST FILE 'person.out' FIXED
 / RECNO 2-6 MEASURE 7-14 (1) MEASSTAT 15-17
   TEST 18-23 SCORE 24-30
   ERROR 31-37 (1) MSINF 38-44 (2) STDINF 45-51 (2)
   MSOUT 52-58 (2) STDOUT 59-65 (2) DISPLAC 66-72 (2)
   PTBISER 73-79 (2) SEX 85 (A) AGE 86 (A)
   EDLEVEL 87 (A) ETHGRP 88 (A) INCOME 89 (A) ALCOHAB 90 (A)
   ARTHRIT 91 (A) ASTHMA 92 (A) CANCER 93 (A) COLITIS 94 (A)
   DIABETES 95 (A) DRUGAB 96 (A) EPILEPSY 97 (A) HEARTDIS 98 (A)
   HYPERTEN 99 (A) LUNGDIS 100 (A) STDS 101 (A) STOMULCR 102 (A)
   STROKE 103 (A) THYROID 104 (A).

EXECUTE.

*Add labels.
VARIABLE LABELS RECNO 'RECORD NUMBER'
                MEASSTAT 'MEASURE TYPE'
                TEST '# ITEMS MEASURING'
                SCORE 'RAW RATINGS SUM'
                MEASURE 'KIND OF MEASURES'
                ERROR 'ERROR (RANGE OF MEASURE)'
                MSINF 'MNSQ INFIT'
                STDINF 'STNDRDZD INFIT'
                MSOUT 'MNSQ OUTFIT'
                STDOUT 'STNDRDZD OUTFIT'.

VALUE LABELS MEASSTAT 1 'Estimated value' 2 'Anchored value'
                      0 'Extreme minimum'
                      -1 'Extreme maximum' -2 'No available responses'
                      -3 'Deleted by user' -4 'Combined w/ another item'.

MISSING VALUES MEASURE ERROR STDINF STDOUT SCORE TEST (0).
SET BLANKS=SYSMIS BLANKS=SYSMIS UNDEFINED=WARN.
SAVE OUTFILE='persout.sav'
   /COMPRESSED.

***
* Part Two: Read in another BIGSTEPS person output file.
DATA LIST FILE 'person2.out' FIXED
                        / RECNO 2-6 MEASURE 7-14 (1) MEASSTAT 15-17
                          TEST 18-23 SCORE 24-30
                          ERROR 31-37 (1) MSINF 38-44 (2) STDINF 45-51 (2)
                          MSOUT 52-58 (2) STDOUT 59-65 (2) DISPLAC 66-72 (2)
                          PTBISER 73-79 (2) SEX 85 (A) AGE 86 (A)
                          EDLEVEL 87 (A) ETHGRP 88 (A) INCOME 89 (A) ALCOHAB 90 (A)
                          ARTHRIT 91 (A) ASTHMA 92 (A) CANCER 93 (A) COLITIS 94 (A)
                          DIABETES 95 (A) DRUGAB 96 (A) EPILEPSY 97 (A) HEARTDIS 98 (A)
                          HYPERTEN 99 (A) LUNGDIS 100 (A) STDS 101 (A) STOMULCR 102 (A)
                          STROKE 103 (A) THYROID 104 (A).
EXECUTE.

*Add labels.
VARIABLE LABELS RECNO 'RECORD NUMBER'
                MEASSTAT 'MEASURE TYPE'
                TEST '# ITEMS MEASURING' SCORE 'RAW RATINGS SUM'
                MEASURE 'KIND OF MEASURES'
                ERROR 'ERROR (RANGE OF MEASURE)'
                MSINF 'MNSQ INFIT'
                STDINF 'STNDRDZD INFIT'
                MSOUT 'MNSQ OUTFIT'
                STDOUT 'STNDRDZD OUTFIT'.
VALUE LABELS MEASSTAT 1 'Estimated value' 2 'Anchored value' 0 'Extreme minimum'
                      -1 'Extreme maximum' -2 'No available responses'
                      -3 'Deleted by user' -4 'Combined w/ another item'.
MISSING VALUES MEASURE ERROR STDINF STDOUT SCORE TEST (0).
SET BLANKS=SYSMIS BLANKS=SYSMIS UNDEFINED=WARN.
SAVE OUTFILE='pers2out.sav'
   /COMPRESSED.

***
* Part Three: Merge the saved BIGSTEPS person output files into a single file.
GET
  FILE='person.sav'.
EXECUTE.

MATCH FILES /TABLE=*
 /RENAME  measure=1meas measstat=1msta test=1test score=1scor
  error=1erro msinf=1msin stdinf=1stin msout=1mout
  stdout=1sout displac=1disp ptbiser=1ptbi
 /FILE='pers2out.sav'
 /RENAME (age alcohab arthrit asthma cancer colitis diabetes drugab edlevel
  epilepsy ethgrp heartdis hyperten income lungdis sex stds stomulcr stroke
  thyroid = d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18
  d19) measure=2meas measstat=2msta test=2test error=2erro
  msinf=2msin stdinf=2stin msout=2mout stdout=2sout
  displac=2disp ptbiser=2ptbi score=2scor
 /BY recno
 /DROP= d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18
  d19.
EXECUTE.

SAVE OUTFILE='pers1_2.sav'
   /COMPRESSED.

***
* Part Four: Select cases for use based on the quality of the measurement estimate.
USE ALL.
COMPUTE filter_$=(2msta = 1 & 1msta = 1).
VARIABLE LABEL filter_$ '2msta = 1 & 1msta = 1 (FILTER)'.
VALUE LABELS filter_$  0 'Not Selected' 1 'Selected'.
FORMAT filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

***************************************************************************

Here is the SPSS code for reading in BIGSTEPS item output files.

DATA LIST FILE 'item1.out' FIXED
                        / RECNO 2-6 CALIBRTN 7-14 (1) CALISTAT 15-17
                          COUNT 18-23 SCORE 24-30
                          ERROR 31-37 (1) MSINF 38-44 (2) STDINF 45-51 (2)
                          MSOUT 52-58 (2) STDOUT 59-65 (2) DISPLAC 66-72 (2)
                          PTBISER 73-79 (2) ITEMNAME 85-114 (A).
EXECUTE.

*Add labels.
VARIABLE LABELS RECNO 'RECORD NUMBER'
                CALISTAT 'CALIBRTN TYPE'
                COUNT '# PERSONS MEASURED' SCORE 'RAW RATINGS SUM'
                CALIBRTN 'KIND OF CALIBRTN'
                ERROR 'ERROR (RANGE OF CALIBRTN)'
                MSINF 'MNSQ INFIT'
                STDINF 'STNDRDZD INFIT'
                MSOUT 'MNSQ OUTFIT'
                STDOUT 'STNDRDZD OUTFIT'.
VALUE LABELS CALISTAT 1 'Estimated value' 2 'Anchored value' 0 'Extreme minimum'
                      -1 'Extreme maximum' -2 'No available responses'
                      -3 'Deleted by user' -4 'Combined w/ another item'.
MISSING VALUES CALIBRTN ERROR STDINF STDOUT SCORE COUNT (0).
SET BLANKS=SYSMIS BLANKS=SYSMIS UNDEFINED=WARN.
SORT CASES BY
  itemname (A) .
SAVE OUTFILE='item1.sav'
   /COMPRESSED.
DATA LIST FILE 'item2.out' FIXED
                        / RECNO 2-6 CALIBRTN 7-14 (1) CALISTAT 15-17
                          COUNT 18-23 SCORE 24-30
                          ERROR 31-37 (1) MSINF 38-44 (2) STDINF 45-51 (2)
                          MSOUT 52-58 (2) STDOUT 59-65 (2) DISPLAC 66-72 (2)
                          PTBISER 73-79 (2) ITEMNAME 85-114 (A).
EXECUTE.

*Add labels.
VARIABLE LABELS RECNO 'RECORD NUMBER'
                CALISTAT 'CALIBRTN TYPE'
                COUNT '# PERSONS MEASURED' SCORE 'RAW RATINGS SUM'
                CALIBRTN 'KIND OF CALIBRTN'
                ERROR 'ERROR (RANGE OF CALIBRTN)'
                MSINF 'MNSQ INFIT'
                STDINF 'STNDRDZD INFIT'
                MSOUT 'MNSQ OUTFIT'
                STDOUT 'STNDRDZD OUTFIT'.
VALUE LABELS CALISTAT 1 'Estimated value' 2 'Anchored value' 0 'Extreme minimum'
                      -1 'Extreme maximum' -2 'No available responses'
                      -3 'Deleted by user' -4 'Combined w/ another item'.
MISSING VALUES CALIBRTN ERROR STDINF STDOUT SCORE COUNT (0).
SET BLANKS=SYSMIS BLANKS=SYSMIS UNDEFINED=WARN.
SORT CASES BY
  itemname (A) .
SAVE OUTFILE='item2.sav'
   /COMPRESSED.
GET
  FILE='item1.sav'.
EXECUTE.

MATCH FILES /TABLE=*
 /RENAME  calibrtn=1cali CALISTAT=1msta COUNT=1COUNT score=1scor
  error=1erro msinf=1msin stdinf=1stin msout=1mout
  stdout=1sout displac=1disp ptbiser=1ptbi
 /FILE='item2.sav'
 /RENAME calibrtn=2cali CALISTAT=2msta COUNT=2COUNT error=2erro
  msinf=2msin stdinf=2stin msout=2mout stdout=2sout
  displac=2disp ptbiser=2ptbi score=2scor
 /BY itemname.
EXECUTE.

SAVE OUTFILE='item1_2.sav'
/COMPRESSED.
USE ALL.
COMPUTE filter_$=(2msta = 1 & 1msta = 1).
VARIABLE LABEL filter_$ '2msta = 1 & 1msta = 1 (FILTER)'.
VALUE LABELS filter_$  0 'Not Selected' 1 'Selected'.
FORMAT filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.

MESA Research Note #4 by William P. Fisher, Jr.
Louisiana State University Medical Center, September 1997


Go to Top of Page
Go to Institute for Objective Measurement Page

Please help with Standard Dataset 4: Andrich Rating Scale Model



Rasch Publications
Rasch Measurement Transactions (free, online) Rasch Measurement research papers (free, online) Probabilistic Models for Some Intelligence and Attainment Tests, Georg Rasch Applying the Rasch Model 3rd. Ed., Bond & Fox Best Test Design, Wright & Stone
Rating Scale Analysis, Wright & Masters Introduction to Rasch Measurement, E. Smith & R. Smith Introduction to Many-Facet Rasch Measurement, Thomas Eckes Invariant Measurement: Using Rasch Models in the Social, Behavioral, and Health Sciences, George Engelhard, Jr. Statistical Analyses for Language Testers, Rita Green
Rasch Models: Foundations, Recent Developments, and Applications, Fischer & Molenaar Journal of Applied Measurement Rasch models for measurement, David Andrich Constructing Measures, Mark Wilson Rasch Analysis in the Human Sciences, Boone, Stave, Yale
in Spanish: Análisis de Rasch para todos, Agustín Tristán Mediciones, Posicionamientos y Diagnósticos Competitivos, Juan Ramón Oreja Rodríguez

To be emailed about new material on www.rasch.org
please enter your email address here:

I want to Subscribe: & click below
I want to Unsubscribe: & click below

Please set your SPAM filter to accept emails from Rasch.org

www.rasch.org welcomes your comments:
Please email inquiries about Rasch books to books \at/ rasch.org

Your email address (if you want us to reply):

 

FORUMRasch Measurement Forum to discuss any Rasch-related topic

Coming Rasch-related Events
Sept. 15-16, 2017, Fri.-Sat. IOMC 2017: International Outcome Measurement Conference, Chicago, jampress.org/iomc2017.htm
Oct. 13 - Nov. 10, 2017, Fri.-Fri. On-line workshop: Practical Rasch Measurement - Core Topics (E. Smith, Winsteps), www.statistics.com
Oct. 25-27, 2017, Wed.-Fri. In-person workshop: Applying the Rasch Model hands-on introductory workshop, Melbourne, Australia (T. Bond, B&FSteps), Announcement
Jan. 5 - Feb. 2, 2018, Fri.-Fri. On-line workshop: Practical Rasch Measurement - Core Topics (E. Smith, Winsteps), www.statistics.com
Jan. 10-16, 2018, Wed.-Tues. In-person workshop: Advanced Course in Rasch Measurement Theory and the application of RUMM2030, Perth, Australia (D. Andrich), Announcement
Jan. 17-19, 2018, Wed.-Fri. Rasch Conference: Seventh International Conference on Probabilistic Models for Measurement, Matilda Bay Club, Perth, Australia, Website
April 13-17, 2018, Fri.-Tues. AERA, New York, NY, www.aera.net
May 25 - June 22, 2018, Fri.-Fri. On-line workshop: Practical Rasch Measurement - Core Topics (E. Smith, Winsteps), www.statistics.com
June 29 - July 27, 2018, Fri.-Fri. On-line workshop: Practical Rasch Measurement - Further Topics (E. Smith, Winsteps), www.statistics.com
Aug. 10 - Sept. 7, 2018, Fri.-Fri. On-line workshop: Many-Facet Rasch Measurement (E. Smith, Facets), www.statistics.com
Oct. 12 - Nov. 9, 2018, Fri.-Fri. On-line workshop: Practical Rasch Measurement - Core Topics (E. Smith, Winsteps), www.statistics.com
The HTML to add "Coming Rasch-related Events" to your webpage is:
<script type="text/javascript" src="https://www.rasch.org/events.txt"></script>

 

Our current URL is www.rasch.org

The URL of this page is www.rasch.org/rn4.htm