Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: Data management/analysis

From   "Banya, Winston" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: RE: Data management/analysis
Date   Tue, 9 Jul 2002 10:59:02 +0100

Dear All;

Nick suggested that I give an example of the data.

The data is in the following form.

ID   Age  MSP  Dr.  Rel.

001  60    0   Y     N
002  79    5   N     N
003  81    3   Y     Y 
004  91    2   Y     Y

039 75    1    Y     N

The data is about asking a doctor and a relative about whether either of
them prefers resusitation for elderly dementia patients. What my colleague
who generated the data wants is whether he can compare when the doctor said
yes and when the relative said yes for the variable msp for example. What I
told him is that it may be difficult to do so without losing some data. One
may get 'independent' samples in the case they do not agree but when the
agree how is it counted?

If anyone can offer any suggestions, I will be most grateful.

-----Original Message-----
From: Nick Cox [mailto:[email protected]]
Sent: 08 July 2002 17:30
To: [email protected]
Subject: st: RE: Data management/analysis

Banya, Winston
> I am working on a small dataset and most of the variables are skewed. In
> this data 2 'observers' give an opinion and in some instances 
> they do agree.
> I want to find out the difference in response when they both agree on a
> variable.
> For example in this dataset the age of the people was given, and the two
> observers are asked to state a preferred method of  treating the subjects
> and I want to find out using non parametric methods if there is any
> difference in age when the 2 observers choose the same method of 
> treatment.
> That is if the method is 'A'  for example, I am interested in any 
> difference
> when they choose method A.  Note that in some cases they both 
> agree on A and
> in some cases they do not and so the groups cannot be mutually 
> exclusive. Is
> there a way of handling this in STATA such that if observer 1 says yes 15
> times and no 12 times, while  observer 2 says yes 18 times and no 9 times
> then I can only compare when they said yes. However I want to treat the
> responses as if there were no times when they said ties together 
> even though
> they did.  

This would, I guess, be easier to answer if you gave examples of 
the data structure you are using or intending to use. 
What are your variables? What defines your observations? 

However, observations can be identified as agreeing on 
two variables by something like 

... if var1 == "yes" & var2 == "yes" 


... if var1 == 1 & var2 == 1 

[email protected] 
*   For searches and help try:
*   For searches and help try:

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