Statistical Analysis for Education and Psychology Researchers

(Jeff_L) #1
0001 options nodate nonumber;
0002 data child1;
0003 infile 'a:child1.dat';
0004 input caseid 1–3 ageyrs 5–6 sex 8
ses 10 raven 12;
0005 proc print;
0006 title 'Data listing for data=child1';
0007 run;

Figure 3.6: Example SAS programme


to produce a data listing, for the data


child1


0001 Data listing for data=child1
0002
0003 CBS CASEID AGEYRS SEX SES RAVEN
0004
0005 1 1 7 0 1 1
0006 2 2 9 1 9 1
0007 3 3. 1 1 2
0008 4 4 10 0 1 9
0009 5 5 7 1 1 6
0010 6 6 9 1 1 3
0011 7 7 8 0 1 1
0012 8 8 7 1 1 1
0013 9 9 10 1. 1
0014 10 10 11 1 2 1

Figure 3.7: SAS output from PROC


PRINT, for the data child1


Statistical analysis for education and psychology researchers 46

Free download pdf