Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: kappa command: select raters with complete data


From   Frank Gallo <[email protected]>
To   [email protected]
Subject   Re: st: RE: kappa command: select raters with complete data
Date   Fri, 04 Sep 2009 19:48:21 -0400

Hi Nick,

Thank you very much for the reply and the excellent reference. Let me start my response with I am a stata beginner. The organization of my data table is rows (of variables) and columns (of raters). So your syntax creates a rowmiss, which gives the count of missing values across variables. What I want to do is exclude the raters (or columns) that have missing values on variables (or rows) when calculating kap. For example, I have 94 raters: rater1-rater94 columns. I have 49 variables: p1-p49 rows. If only rater1 and rater2 had missing values on variables p1-p49, then I would want to exclude them from kap so that I could calculate the test statistics. I do not want to drop them from the data, though, because I have other variables such as r1-r15 for which rater1 and rater2 gave complete ratings. Simply, I want to use the set of raters with complete ratings for the variables. I greatly appreciate any comments. Thank you.

Best,
Frank


On Sep 4, 2009, at 1:40 PM, Nick Cox wrote:

egen rowmiss = rowmiss(rater*)
kap rater* if rowmiss == 0

See for a broader discussion

SJ-9-1  pr0046  . . . . . . . . . . . . . . . . . . .  Speaking Stata:
Rowwise
       (help rowsort, rowranks if installed) . . . . . . . . . . .  N.
J. Cox
       Q1/09   SJ 9(1):137--157
       shows how to exploit functions, egen functions, and Mata
       for working rowwise; rowsort and rowranks are introduced

Nick
[email protected]

Frank Gallo

I am running the kap command, and I want to limit the analysis to the
raters that gave complete ratings for a set of objects (or variables).
The data matrix is in the form of columns(raters) and rows(variables).
For example:

kap rater1-rater94 if rater1-rater94 != . in 1/49

I know this "does not equal missing" designation here is incorrect,
but it illustrates what I want to do and where I am stuck.



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index