Batch file processing = Yes

To avoid Facets requesting user intervention when it is run in batch mode from the DOS prompt or otherwise, include Batch=Yes on the command line in your.bat or .cmd file.

 


 

1. Construct a Facets specification and data file that works correctly when launched in the usual way. Let's say this is "c:\myfolder\myspec.txt".

 

2. Let say that facets.exe is in "c:\facets\facets.exe"

 

3. Construct a text file which contains:

START /WAIT "c:\facets\facets.exe" BATCH=NO "c:\myfolder\myspec.txt" "c:\myfolder\myoutput.txt"

 

4. Save the text file and rename it "c:\myfolder\mybatch.bat"

 

5. Double-click on "c:\myfolder\mybatch.bat"

 

6. Facets will run in batch mode and you will see its operation on your screen. The output is in c:\myfolder\myoutput.txt

 

7. Exit from Facets.

 

8. Edit "c:\myfolder\mybatch.bat" to be

START /WAIT "c:\facets\facets.exe" BATCH=YES "c:\myfolder\myspec.txt" "c:\myfolder\myoutput.txt"

 

9. Double-click on "c:\myfolder\mybatch.bat"

 

10. Facets will run in hidden batch mode. Its output is in c:\myfolder\myoutput.txt

 


 

The general format is: Facets BATCH=YES specification-file output-file extra-specifications

 

It is often useful to run multiple Facets tasks, one after the other, without keyboard intervention. This can be accomplished by running Facets in CMD batch mode.

 

Here is a typical .CMD file. It is Facetsxp.cmd in the Examples folder. Double-click on it to launch it.

 

echo  This is the version for Windows-NT, 2000

echo  This is a batch file to run Facets in batch mode

echo  Edit the next lines and add more.

echo  Format of lines is:

echo  START /WAIT ..\Facets BATCH=YES Control-file Output-file Extra=specifications

START /WAIT ..\Facets BATCH=YES dives.txt dives.out.txt

START /WAIT ..\Facets BATCH=YES lfs.txt lfs.out.txt  

START /WAIT ..\Facets BATCH=YES kct.txt kct.out.txt

 

 


 

Example 1: Simulate and analyze 1000 Facets data sets from lfs.txt

 

 Create text file "Simul.bat" in the Examples folder, copy this text into it, save and double-click on Simul.bat

 

Rem Simulate and analyze 1000 data sets

rem perform analysis of the original data and write out the anchor values

START /WAIT c:\facets\ BATCH=YES lfs.txt specfile.out.txt anchorfile=lfsanc.txt

SET /A COUNT=1 

:LOOP 

echo Loop number %COUNT% 

rem do this 1000 times

IF %COUNT% == 1001 GOTO END 

rem generate simulate data file from lfsanc.txt to avoid re-estimation each time

START /WAIT c:\facets\Facets BATCH=YES lfsanc.txt specfile.out.txt simul=s%COUNT%.txt

rem analyze original file replacing data in lfs.txt with the simulated data

START /WAIT c:\facets\ BATCH=YES lfs.txt s%COUNT%.out.txt data=s%COUNT%.txt scorefile=sc%COUNT%.txt

rem accumulate scorefiles by facet

type sc%COUNT%1.txt >> cand.results.txt

type sc%COUNT%2.txt >> rater.results.txt

type sc%COUNT%3.txt >> paper.results.txt

type sc%COUNT%4.txt >> task.results.txt

SET /A COUNT=COUNT+1 

GOTO LOOP 

:END

PAUSE

 

Example 2: Simulate and analyze multiple Facets data sets from lfs.txt using %include files:

 

           At the top of the lfs.txt file, add this line:

          %include.txt

 

 Create text file "Simul.bat" in the Examples folder, copy this text into it, save and double-click on Simul.bat

 

Rem Simulate and analyze 1000 data sets

rem perform analysis of the original data and write out the anchor values

START /WAIT c:\facets\ BATCH=YES lfs.txt specfile.out.txt anchorfile=lfsanc.txt

SET /A COUNT=1 

:LOOP 

echo Loop number %COUNT% 

rem do this 1000 times

IF %COUNT% == 1001 GOTO END 

rem generate simulate data file from lfsanc.txt to avoid re-estimation each time

START /WAIT c:\facets\Facets BATCH=YES lfsanc.txt specfile.out.txt simul=s%COUNT%.txt

rem analyze original file replacing data in lfs.txt with the simulated data

 

echo "s%COUNT%.out.txt data=s%COUNT%.txt scorefile=sc%COUNT%.txt" >include.txt

START /WAIT c:\facets\ BATCH=YES lfs.txt 

 

rem accumulate scorefiles by facet

type sc%COUNT%1.txt >> cand.results.txt

type sc%COUNT%2.txt >> rater.results.txt

type sc%COUNT%3.txt >> paper.results.txt

type sc%COUNT%4.txt >> task.results.txt

SET /A COUNT=COUNT+1 

GOTO LOOP 

:END

PAUSE


Help for Facets (64-bit) 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
Invariant Measurement: Using Rasch Models in the Social, Behavioral, and Health Sciences, 2nd Edn, 2024 George Engelhard, Jr. & Jue Wang 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
Introduction to Many-Facet Rasch Measurement (Facets), Thomas Eckes 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 Appliquer le modèle de Rasch: Défis et pistes de solution (Winsteps) E. Dionne, S. Béland
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
Jan. 17 - Feb. 21, 2025, Fri.-Fri. On-line workshop: Rasch Measurement - Core Topics (E. Smith, Winsteps), www.statistics.com
Feb. - June, 2025 On-line course: Introduction to Classical Test and Rasch Measurement Theories (D. Andrich, I. Marais, RUMM2030), University of Western Australia
Feb. - June, 2025 On-line course: Advanced Course in Rasch Measurement Theory (D. Andrich, I. Marais, RUMM2030), University of Western Australia
Apr. 21 - 22, 2025, Mon.-Tue. International Objective Measurement Workshop (IOMW) - Boulder, CO, www.iomw.net
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