Thanks. This seems more complicated than I thought. And I ran into an error when I executed the code you sent. Below is the log with the error. It seems that sas cannot locate the macro.
Does this macro work for 2 raters, or does it require more than 2 raters?
1 data a; 2 do row=1 to 7; do col=1 to 7; 3 input f@@; 4 do i=1 to f; 5 s+1; 6 r=1; y=row; output; 7 r=2; y=col; output; 8 end; 9 end; end; 10 datalines;
NOTE: SAS went to a new line when INPUT statement reached past the end of a line. NOTE: The data set WORK.A has 366 observations and 7 variables. NOTE: DATA statement used (Total process time): real time 0.04 seconds cpu time 0.04 seconds
18 ; 19 20 21 data wt; 22 input w1-w6; 23 datalines;
NOTE: The data set WORK.WT has 6 observations and 6 variables. NOTE: DATA statement used (Total process time): real time 0.01 seconds cpu time 0.01 seconds
WARNING: Apparent invocation of macro MAGREE not resolved. 30 ; 31 32 run; 33 34 %magree(data=a, - 180 ERROR 180-322: Statement is not valid or it is used out of proper order.
35 items=s, raters=r, response=y, 36 stat=gwet, weight=wt, options=nosummary);
... View more