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



Rasch-Related Resources: Rasch Measurement YouTube Channel
Rasch Measurement Transactions & Rasch Measurement research papers - free An Introduction to the Rasch Model with Examples in R (eRm, etc.), Debelak, Strobl, Zeigenfuse Rasch Measurement Theory Analysis in R, Wind, Hua Applying the Rasch Model in Social Sciences Using R, Lamprianou Journal of Applied Measurement
Rasch Models: Foundations, Recent Developments, and Applications, Fischer & Molenaar Probabilistic Models for Some Intelligence and Attainment Tests, Georg Rasch Rasch Models for Measurement, David Andrich Constructing Measures, Mark Wilson Best Test Design - free, Wright & Stone
Rating Scale Analysis - free, Wright & Masters
Virtual Standard Setting: Setting Cut Scores, Charalambos Kollias Diseño de Mejores Pruebas - free, Spanish Best Test Design A Course in Rasch Measurement Theory, Andrich, Marais Rasch Models in Health, Christensen, Kreiner, Mesba Multivariate and Mixture Distribution Rasch Models, von Davier, Carstensen
Rasch Books and Publications: Winsteps and Facets
Applying the Rasch Model (Winsteps, Facets) 4th Ed., Bond, Yan, Heene Advances in Rasch Analyses in the Human Sciences (Winsteps, Facets) 1st Ed., Boone, Staver Advances in Applications of Rasch Measurement in Science Education, X. Liu & W. J. Boone Rasch Analysis in the Human Sciences (Winsteps) Boone, Staver, Yale Appliquer le modèle de Rasch: Défis et pistes de solution (Winsteps) E. Dionne, S. Béland
Introduction to Many-Facet Rasch Measurement (Facets), Thomas Eckes Rasch Models for Solving Measurement Problems (Facets), George Engelhard, Jr. & Jue Wang Statistical Analyses for Language Testers (Facets), Rita Green Invariant Measurement with Raters and Rating Scales: Rasch Models for Rater-Mediated Assessments (Facets), George Engelhard, Jr. & Stefanie Wind Aplicação do Modelo de Rasch (Português), de Bond, Trevor G., Fox, Christine M
Exploring Rating Scale Functioning for Survey Research (R, Facets), Stefanie Wind Rasch Measurement: Applications, Khine Winsteps Tutorials - free
Facets Tutorials - free
Many-Facet Rasch Measurement (Facets) - free, J.M. Linacre Fairness, Justice and Language Assessment (Winsteps, Facets), McNamara, Knoch, Fan

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
May 17 - June 21, 2024, Fri.-Fri. On-line workshop: Rasch Measurement - Core Topics (E. Smith, Winsteps), www.statistics.com
June 12 - 14, 2024, Wed.-Fri. 1st Scandinavian Applied Measurement Conference, Kristianstad University, Kristianstad, Sweden http://www.hkr.se/samc2024
June 21 - July 19, 2024, Fri.-Fri. On-line workshop: Rasch Measurement - Further Topics (E. Smith, Winsteps), www.statistics.com
Aug. 5 - Aug. 6, 2024, Fri.-Fri. 2024 Inaugural Conference of the Society for the Study of Measurement (Berkeley, CA), Call for Proposals
Aug. 9 - Sept. 6, 2024, Fri.-Fri. On-line workshop: Many-Facet Rasch Measurement (E. Smith, Facets), www.statistics.com
Oct. 4 - Nov. 8, 2024, Fri.-Fri. On-line workshop: Rasch Measurement - Core Topics (E. Smith, Winsteps), www.statistics.com
Jan. 17 - Feb. 21, 2025, Fri.-Fri. On-line workshop: Rasch Measurement - Core Topics (E. Smith, Winsteps), www.statistics.com
May 16 - June 20, 2025, Fri.-Fri. On-line workshop: Rasch Measurement - Core Topics (E. Smith, Winsteps), www.statistics.com
June 20 - July 18, 2025, Fri.-Fri. On-line workshop: Rasch Measurement - Further Topics (E. Smith, Facets), www.statistics.com
Oct. 3 - Nov. 7, 2025, Fri.-Fri. On-line workshop: Rasch Measurement - Core Topics (E. Smith, Winsteps), www.statistics.com

 

Our current URL is www.rasch.org

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