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

[no subject]



I am using Stata/SE, for which the maximum
tolerated in this situation is 12000 and 
(presumably) Friedrich is not using Stata/SE. 

See help on -limits- at -tabulate-. 

My guess is that this might possibly be 
trapped a little more gracefully. 

Nick 
[email protected] 

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of Nick Cox
> Sent: 21 July 2004 18:41
> To: [email protected]
> Subject: st: RE: Re: Problem with -codebook- (too many values)
> 
> 
> No. Edited version of log: 
> 
> . about 
> 
> Stata/SE 8.2 for Windows
> Born 1 July 2004
> Copyright (C) 1985-2004
> 
> . set obs 5000
> obs was 0, now 5000
> . gen id = _n
> . lab def missing .a "Missing"
> . lab val id missing
> . codebook id
> 
> --------------------------------------------------------------
> ------------------
> id                                                            
>        (unlabeled)
> --------------------------------------------------------------
> ------------------
> 
>                   type:  numeric (float)
>                  label:  missing, but 5000 nonmissing values 
> are not labeled
> 
>                  range:  [1,5000]                     units:  1
>          unique values:  5000                     missing .:  0/5000
> 
>               examples:  1000  
>                          2000  
>                          3000  
>                          4000  
> 
> . 
> 
> Nick 
> [email protected] 
> 
> Friedrich Huebler
> > 
> > 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
> > 
> > --- 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
> > 
> 
> *
> *   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/
> 

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