Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: treatment of missing values in a matrix dissimilarity score


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: treatment of missing values in a matrix dissimilarity score
Date   Mon, 15 Sep 2008 20:16:06 +0100

Without comment on whether the detail here is correct, it sounds like a
case for controlling which observations you feed via 

... if !missing(x1, x2, x3, x4) 

Nick
[email protected] 

Elkins, Zachary S

I'd like to calculate the matches between observations across a set of
binary variables.  I suspect that there are multiple ways to do this.
I've specified:

matrix dissimilarity m=x1 x2 x3 x4, match proportion

However, some values in x1-x4 are missing.  Based on the results, it
appears that Stata treats missing values as if they were 1 and I don't
see how to modify that.  I'd like to calculate to calculate similarities
across only non-missing elements (the number of which will be different
for each pair, of course).


*
*   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