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

Re: st: Re: polychoric


From   Philip Ryan <[email protected]>
To   [email protected]
Subject   Re: st: Re: polychoric
Date   Tue, 03 Feb 2004 08:53:00 +1030

Stas

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

Phil






At 02:47 PM 2/02/2004 -0500, you wrote:

--- Nick Winter wrote:
> You might be able to make good use of the -inspect- command; when run on
> a single variable, it seems to leave behind the number of unique values
> in r(N_unique)

Cool! That solved it. Another update available, then.

 ---                                    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/
Philip Ryan
Associate Professor,
Department of Public Health
Associate Dean (Information Technology)
Faculty of Health Sciences
University of Adelaide 5005
South Australia
tel 61 8 8303 3570
fax 61 8 8223 4075
http://www.public-health.adelaide.edu.au/
CRICOS Provider Number 00123M
-----------------------------------------------------------
This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright. If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.

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



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