BASIC program to build Facets data and specification files

This is for 32-bit Facets 3.87. Here is Help for 64-bit Facets 4

Here is an example program, which writes Facets data records and also builds a table of element labels for the specification file, using this example data file.

 

123 665 25467

452 339 34245

312 034 34452

columns 1-3, "123" in record 1, are examinee identifiers

columns 5-7, "665" in record 1, are judge identifiers

columns 9-13, "25467" in record 1, are the ratings on items 1 to 5.

 

100 DIM JUDGE$(100), examinee$(1000) 'to hold elements

110 OPEN "raw.dat" FOR INPUT AS #1 'input the raw data

120 OPEN "dat.txt" FOR OUTPUT AS #2 'output the Facets data file

130 OPEN "spec.txt" FOR OUTPUT AS #3 'output part of the specification file

140 LASTITEM% = 5 'there are 5 items

150 IF EOF(1) THEN 340 'are we at end-of-file ?

160 LINE INPUT #1, l$ 'read in a record from the raw data file

170 FOR J% = 1 TO LASTJUDGE% 'look down list of judges

180 IF MID$(l$, 5, 3) = JUDGE$(J%) THEN 220 'have we met the judge in cols 5-7 already?

190 NEXT J%

200 LASTJUDGE% = LASTJUDGE% + 1: J% = LASTJUDGE% 'no, add a new judge

210 JUDGE$(J%) = MID$(l$, 5, 3) 'add new judge to the array

220 FOR E% = 1 TO LASTEXAMINEE% 'look down list of examinees

230 IF MID$(l$, 1, 3) = EXAMINEE$(E%) THEN 270 'have we met the examinee in cols 1-3?

240 NEXT E%

250 LASTEXAMINEE% = LASTEXAMINEE% + 1: E% = LASTEXAMINEE% 'no, add a new examinee

260 EXAMINEE$(E%) = MID$(l$, 1, 3) 'add new examinee to the array

270 RATING$ = "" 'clear rating hold area

280 FOR I% = 1 TO LASTITEM% 'now append ratings, in cols 9-13, one for each item

290 RATING$ = RATING$ + "," + MID$(l$, 8 + I%, 1)

300 NEXT I%

310 PRINT #2, STR$(J%) + ",1-" + STR$(LASTITEM%) + "," + STR$(E%) + RATING$  'output data

320 GOTO 150 'go back for next record

330  ' now write out the element labels into the specification file

340 PRINT #3, "Title=Example conversion" ' Facets specifications

350 PRINT #3, "Facets=3"

360 PRINT #3, "Model=?,?,?,R"

370 PRINT #3, "Data=dat.txt"

380 PRINT #3, "Labels="

390 PRINT #3, "1,Judges"

400 FOR J% = 1 TO LASTJUDGE%

410 PRINT #3, STR$(J%) + "=" + JUDGE$(J%) 'the judge elements

420 NEXT J%

430 PRINT #3, "*"

440 PRINT #3, "2,Items"

450 FOR I% = 1 TO LASTITEM%

460 PRINT #3, STR$(I%) + "=" + STR$(I%) 'the item elements

470 NEXT I%

480 PRINT #3, "*"

490 PRINT #3, "3,Examinees"

500 FOR E% = 1 TO LASTEXAMINEE%

510 PRINT #3, STR$(E%) + "=" + EXAMINEE$(E%) 'the examinee elements

520 NEXT E%

530 PRINT #3, "*"

540 CLOSE

550 STOP


Help for Facets Rasch Measurement and Rasch Analysis Software: www.winsteps.com Author: John Michael Linacre.
 

Facets Rasch measurement software. Buy for $149. & site licenses. Freeware student/evaluation Minifac download
Winsteps Rasch measurement software. Buy for $149. & site licenses. Freeware student/evaluation Ministep download

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
Other 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 El modelo métrico de Rasch: Fundamentación, implementación e interpretación de la medida en ciencias sociales (Spanish Edition), Manuel González-Montesinos M.
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
As an Amazon Associate I earn from qualifying purchases. This does not change what you pay.

facebook Forum: Rasch Measurement Forum to discuss any Rasch-related topic

To receive News Emails about Winsteps and Facets by subscribing to the Winsteps.com email list,
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 Winsteps.com
The Winsteps.com email list is only used to email information about Winsteps, Facets and associated Rasch Measurement activities. Your email address is not shared with third-parties. Every email sent from the list includes the option to unsubscribe.

Questions, Suggestions? Want to update Winsteps or Facets? Please email Mike Linacre, author of Winsteps mike@winsteps.com


State-of-the-art : single-user and site licenses : free student/evaluation versions : download immediately : instructional PDFs : user forum : assistance by email : bugs fixed fast : free update eligibility : backwards compatible : money back if not satisfied
 
Rasch, Winsteps, Facets online Tutorials

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. 7, 2024, Mon.-Wed. 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.winsteps.com

Winsteps® is a registered trademark