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

st: Re: Problem with -codebook- (too many values)


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: Re: Problem with -codebook- (too many values)
Date   Wed, 21 Jul 2004 10:33:15 -0700 (PDT)

My Stata is up to date. Don't you get the "too many values" error
message?

. which codebook
C:\Stata8\ado\updates\c\codebook.ado
*! version 1.3.16  09jun2004

Friedrich Huebler

--- Nick Cox <[email protected]> wrote:
> I think StataCorp are ahead of you. -update ado- 
> installs -codebook- 1.3.16 of 9 June 2004,
> which gives a sensible answer at least to this example. 
> 
> Nick 
> [email protected] 
> 
> Friedrich Huebler
> > 
> > The command -codebook- does not work if a variable has too many
> > values without labels. When the offending value label is dropped,
> > -codebook- works. Edited output from Stata 8.2 that demonstrates
> the
> > problem is attached below. The example uses .a in the label
> > definition but any value can be substituted. Is it possible to
> use
> > -codebook- in such a situation without having to drop value
> labels?
> > Thank you.
> > 
> > Friedrich Huebler
> > 
> > . set obs 5000
> > . gen id = _n
> > . lab def missing .a "Missing"
> > . lab val id missing
> > . codebook id
> > ----------------------------------------------------
> > id                                       (unlabeled)
> > ----------------------------------------------------
> > 
> >          type:  numeric (float)
> >         label:  missingtoo many values
> > r(134);
> > 
> > . lab drop missing
> > . codebook id
> > ----------------------------------------------------
> > id                                       (unlabeled)
> > ----------------------------------------------------
> > 
> >          type:  numeric (float)
> >         label:  missing, but label does not exist
> > 
> >         range:  [1,5000]              units:  1
> > unique values:  5000              missing .:  0/5000
> > 
> >          mean:    2500.5
> >      std. dev:   1443.52
> > 
> >   percentiles:   10%     25%     50%     75%     90%
> >                500.5  1250.5  2500.5  3750.5  4500.5


		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 
*
*   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