--- In [email protected], Philip Ryan <philip.ryan@a...> wrote:
> You should be cautious using -inspect- to return the number of unique
> values. It runs out of steam after 99 distinct values and thereafter
> reports r(N_unique) as missing. This may cause problems in your
> program. -tabulate- (then look at r(r) ) is a better option, but it too
> has limits.
>
> Nick Cox and Gary Longton have a useful FAQ on the subject and point to
> some user-written solutions:
>
> http://www.stata.com/support/faqs/data/distinct.html
Thanks for clarification, Phil. The way I utilize the results is
if r(N_unique)>9 {
so missing is OK to me.
An overall question to the users of -polychoric-: if there are ten or more
categories, I assume the variable is continuous enough to use the moment
correlations. I can make that number an option. Is it needed to anybody
who wants the polychoric correlations of 20 categories x 20 categories?
--- Stas Kolenikov
-- Ph.D. student in Statistics at UNC-Chapel Hill
- http://www.komkon.org/~tacik/ -- [email protected]
* This e-mail and all attachments to it are not intended to provide any
* reasonable point of view and was transmitted to you in error. It
* should be immediately deleted by all recipients unless they really
* enjoy communicating with the author :). Other restrictions apply.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/