Resources

Documentation Example 5 for PROC IRT

/****************************************************************/
/*          S A S   S A M P L E   L I B R A R Y                 */
/*                                                              */
/*    NAME: IRTEX5                                              */
/*   TITLE: Documentation Example 5 for PROC IRT                */
/*                                                              */
/* PRODUCT: STAT                                                */
/*  SYSTEM: ALL                                                 */
/*    KEYS:                                                     */
/*   PROCS: IRT                                                 */
/*    DATA:                                                     */
/*                                                              */
/* SUPPORT: Xinming An                                          */
/*     REF: PROC IRT, EXAMPLE 5                                 */
/*    MISC:                                                     */
/****************************************************************/

data IrtUni;
   input item1-item8 @@;
   datalines;
1 0 0 0 1 1 2 1 1 1 1 1 1 3 3 3 0 1 0 0 1 1 1 1 1 0 0 1 0 1 2 3 0 0 0
0 0 1 1 1 1 0 0 1 0 1 3 3 0 0 0 0 0 1 1 3 0 0 1 0 0 1 2 2 0 1 0 0 1 1
1 2 0 0 0 0 0 2 2 3 0 1 0 1 0 2 3 3 0 0 1 0 1 1 2 3 1 1 1 1 1 2 2 3 0
0 0 0 1 1 2 2 1 0 1 1 1 2 3 3 0 1 0 0 1 1 2 3 1 0 1 1 1 2 3 3 0 1 0 1
1 3 2 3 1 1 1 0 0 1 3 3 1 1 0 0 1 2 3 3 0 1 1 1 1 1 2 1 1 0 0 1 1 3 1
1 1 0 0 0 1 1 1 3 0 0 0 0 1 1 3 3 0 0 0 0 0 1 1 1 1 0 0 0 0 1 3 3 1 1
0 1 1 3 1 1 1 0 1 1 1 1 3 1 1 1 1 1 1 2 3 2 0 0 1 0 0 2 2 2 0 0 1 0 1
1 2 3 1 1 1 1 1 1 1 2 0 0 0 0 1 3 1 1 1 1 1 1 1 2 2 3 0 0 0 0 1 2 2 3
1 1 1 1 1 3 3 3 1 1 1 1 1 1 3 3 0 1 0 0 0 2 2 2 0 1 0 1 0 2 2 3 1 0 0
1 1 1 1 2 1 0 0 0 1 3 1 2 0 0 0 0 0 1 3 1 0 1 1 0 0 2 1 3 0 0 0 0 1 2
2 3 0 0 0 0 0 1 1 2 0 0 0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 0 0 1 2 1 1 0 1
1 0 1 3 3 1 1 0 1 0 2 2 2 1 1 0 1 1 3 2 3 0 0 0 1 0 2 2 3 0 0 0 1 0 2
3 3 0 1 0 0 1 2 2 1
;

proc irt data=IrtUni out=IrtScore;
   var item1-item8;
run;

proc print data=IrtScore(obs=5);
run;

proc surveyselect data = IrtUni method = SRS rep = 1
   sampsize = 500 seed = 12345 out = CalData;
   id _all_;
run;

proc irt data=CalData outmodel=IrtModel;
   var item1-item8;
run;

proc surveyselect data = IrtUni method = SRS rep = 1
   sampsize = 50 seed = 54321 out = NewSub;
   id _all_;
run;

proc irt data=NewSub inmodel(score)=IrtModel out=IrtScore2;
run;

proc print data=IrtScore2 (obs=5);
run;