[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Nick Winter <nwinter@virginia.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: How to label the value 999999999999 |

Date |
Wed, 08 Oct 2008 09:55:04 -0400 |

-Nick Winter Nick Cox wrote:

I agree with Sergiy. Your best bet may be to replace 999999999999 with asmaller number and then use a value label.What appears to be happening is a little curious. My interpretation matches that of Sergiy: 999999999999 is being grabbed by Stata and stored as a floating point number. I don't think -label- ever sees a exact integer. Whether there is an upper limit to integers to which labels can be attached I don't know, but that does not appear to be theissue.It is not as though Stata can not do exact integer arithmetic with integers this size, because it can. You can put 999999999999 in a -double- variable and do that, but you will need to use a suitable-format- for the results to be visible.NickSergiy Radyakin Stata does not allow having labels defined for floating-point values. Value 999999999999 is stored as a fp value. Hence there is no way to have a value 999999999999 with a label in Stata. This is possible in SPSS, since it allows labeling any 8 bytes of data. In Stata only integers and extended missings may have labels, but not FP-values or strings. I would suggest you replace 999999999999 with, say -9999 and have a label: label define m -9999 "[999999999999] no response" or save the original 999999999999 value somewhere in the _notes_ * * 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/

-- -------------------------------------------------------------- Nicholas Winter 434.924.6994 t Assistant Professor 434.924.3359 f Department of Politics nwinter@virginia.edu e University of Virginia faculty.virginia.edu/nwinter w PO Box 400787, 100 Cabell Hall Charlottesville, VA 22904 * * 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/

**Follow-Ups**:**RE: st: How to label the value 999999999999***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**References**:**st: How to label the value 999999999999***From:*"Friedrich Huebler" <fhuebler@gmail.com>

**Re: st: How to label the value 999999999999***From:*Caleb Southworth <caleb@uoregon.edu>

**Re: st: How to label the value 999999999999***From:*"Sergiy Radyakin" <serjradyakin@gmail.com>

**RE: st: How to label the value 999999999999***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**Re: st: How to label the value 999999999999** - Next by Date:
**RE: st: How to label the value 999999999999** - Previous by thread:
**RE: st: How to label the value 999999999999** - Next by thread:
**RE: st: How to label the value 999999999999** - Index(es):

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