Statistical Analysis for Education and Psychology Researchers

(Jeff_L) #1

  • CHANGE 3 VALUES
    IN THE
    PROGRAM: *;

  • i) data set
    name, ii) response var to
    be *;

  • analysed and
    iii) class var, (the var
    used *;

  • to allocate
    subjects to
    groups *;



    *;
    *** ENTER YOUR DATA USING
    EITHER THE CARDS STATEMENT, AN
    EXTERNAL
    ;
    DATA FILE e.g. INFILE
    INPUT etc, or a LIBNAME
    STATEMENT **;
    proc summary data=all nway; *
    Change 'All' to your Data set
    name ;
    var score;

    EDIT response var to be
    analysed *;
    class age; **
    EDIT class var which is
    the
    ;




    classification var for the two
    groups*;
    DO NOT EDIT
    BELOW THIS LINE
    ;
    output out=out mean=ymean
    var=variance n=n;
    data b; set out;
    n2=n;
    n1=lag(n);




y2=ymean;
y1=lag (ymean);
variance=round(variance,
.001);
v2=variance;
v1=lag (variance);
alpha= .05;
ndiff=n1+n2;
ydiff= y1−y2;


Appendix 392
Free download pdf