Statistical Analysis for Education and Psychology Researchers
run; proc print split=''; where flag =2; / found power / id alpha; var pie1 pie2 n power; label power='CALCULATED VALUEOF POWER' ...
; Notes: ; 1. Data is input after the cards statement. Enter power alpha ; diff sd and n separated by spaces either POWER or ...
score ie 5%=1.96 / if n=−9 then do; / Find n / flag=1; pz=probit(power); / pz=cumulative z value for given power */ function=(pz ...
title3 'Finding the power' ; run; Figure 3: SAS program POWER2 for power and sample-size calculations, comparison of two means ( ...
** ; Notes: Data is input after the cards statement. ; Sd is the pooled standard deviation derived from both ; samples. **; ...
pz=sqrt(function) −pza; power=round(abs(probnor m(pz)),.01); end; / Print out results / title1 'COMPARISON OF TWO MEANS (PAIRED ...
** ; Purpose: Chi-square test (one-sample/two-sample and r × K ; sample ; ; Tests whether there is an association between tw ...
cards; / Data entered on next line / 1 1 21 1 2 27 2 1 10 2 2 69 ; proc freq data=chi; weight celln; table row*col / nopercent c ...
Output file: NONE (see notes) ; ** ; Notes: Data is entered after the cards statement **; *****; data fisher; input row $ co ...
independent proportions and provides a confidence ; interval for the difference. ; ** ; Created: 16 April 1995 ; ; Input fi ...
alpha=1 − (ci/100); sediff=sqrt((p1(1−p1))/n1 + ((p2(1−p2))/n2)); y=probit(alpha/2); y=abs(y); LOWERCI = ROUND (((p1 − p2) − (ys ...
Input file: NONE (Data entered in programme) ; Output file: NONE (see notes) ; ** ; Notes: The number of treatment groups (re ...
/ per line / / see notes above / 1 0 1 1 1 1 0 1 1 0 0 0 /* 1 1 0 0 0 1 0 0 1 0 0 1 ; Do not edit beyond this line ; %macro coc ...
sumc2=sum (of c21−c2&j); sum c squared ; find cochran q ; q= ((&j−1)(&jsumc2−(n2)))/((&j n)−sumr2) ; numobs= n ...
else put @20 'Not significant at 5% level (p- value= 'lib')' / /; put @20 'p-value with conservative critical value:' / ; if q & ...
pattern of occurrence of observations is random. ; ** ; This procedure uses a large sample approximation for ; the sampling o ...
P-values for one and two-tailed tests are output ; *****; data a; * Enter, after the cards statement, the values for ; N, U, ...
***; ** Filename: WILCOXSR.JOB ; ; Purpose: Wilcoxon signed ranks test ; ; Provides a test of the null hypothesis that the ...
** ; Notes: The pair of observations for each subject- are entered, ; the first observation and then the second for each ; su ...
if eof then output; data b; set b; se=sqrt((n(n+1))((((2n) +1))/24)); expect = (n(n+l))/4; z=abs((t−expect)/se); p=round (1−(pro ...
«
14
15
16
17
18
19
20
21
22
23
»
Free download pdf