Example of SAS Item Analysis

data item; *create new data step;

input id 2. (item1-item8) (1.); *read in id number and item data;

item1 = 7 - item1; *reverse score item 7;

****next line sums items into a scale score;

creatsat = item1 + item2 + item3 + item4 + item5 + item6 + item7 + item8;

****next two lines creates a data set for scores on this scale;

file 'a:\creatscore.dat';

put id 2. creatsat 2.;

datalines;

3224244245

3325444544

3431415313

3524546555

3643344234

5525444455

3754455544

5243455444

5654535543

5343343334

4663234422

4545555655

4424636666

4326616666

4234444445

3925444245

4034344455

4144225445

0925466655

1043224233

5415565555

5744224444

3834426444

0826545455

0126526555

0216545544

0332466665

0725535545

0616666656

2644432465

2943243233

2826656665

3116666666

3016646455

2724114111

1155233454

1221136515

1325544444

1434454344

1515656665

2034233325

1946546566

1825555344

1752225223

1616656665

5024435544

5116666665

4916566564

4815514546

4744322246

2525556665

2433324222

2334455644

2234232425

2124233354

0534444444

0425545455

;

proc freq; tables item1--item8; *frequency distribution for each item;

proc corr alpha nomiss; *item analysis;

var item1-item8;

run;

Copyright Paul E. Spector, All rights reserved, Last modified February 19, 1999.