LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2008)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 3 Nov 2008 19:28:33 +0100
Reply-To:     Marta García-Granero <mgarciagranero@gmail.com>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Marta García-Granero <mgarciagranero@gmail.com>
Subject:      Re: Kappa for unsymmetrical table
In-Reply-To:  <110320081813.13707.490F3F5B000D72B60000358B2200763704CDA1CECECEC9C80806@comcast.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Jean Hanson wrote: > The rater with the missing data is Rater 1. The missing category is #4. Yes, the coding is from 1 to 6. > This modified code should work.

Let me know if it fails (post the error codes, they are very helpful in error debugging).

Marta

* Aggregate dataset on raters to get the frequencies in variable N *. DATASET DECLARE Aggregated. AGGREGATE /OUTFILE='Aggregated' /BREAK=rater2 rater1 /N=N. DATASET ACTIVATE Aggregated. * Restructure dataset to get variables with frequencies *. CASESTOVARS /ID = rater2 /index= rater1 /GROUPBY = VARIABLE . * Create extra variable for missing category (#4) in rater 1, giving it a close to 0 frequency *. COMPUTE N.4=1E-6.

* Restructure dataset back * VARSTOCASES /MAKE N FROM N.1 N.2 N.3 N.4 N.5 N.6 /INDEX = rater1(6) /KEEP = rater2 /NULL = KEEP.

* Weight by N *. WEIGHT BY N.

* Compute kappa *. CROSSTABS /TABLES=rater1 BY rater2 /FORMAT= AVALUE TABLES /STATISTIC=KAPPA /CELLS= COUNT /COUNT ROUND CELL .

-- For miscellaneous statistical stuff, visit: http://gjyp.nl/marta/

===================== To manage your subscription to SPSSX-L, send a message to LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD


Back to: Top of message | Previous page | Main SPSSX-L page