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

From |
Miranda Kim <mk@mrc.soton.ac.uk> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: RE: AW: label define |

Date |
Wed, 11 Nov 2009 15:14:46 +0000 |

Thank you Nick, I'm still using Stata 10, so labutil will come in handy! BW Nick Cox wrote:

Otherwise put:1. See the -help- for -label-.2. In Stata 11, and indeed previously, -label define- defines or changes entirely new or existing sets of value labels, but does not permitsaving under a different name.3. In Stata 11, but not previously, -label copy- is the way to copy anexisting set of value labels under another name.4. For Stata 7 to 10, -labvalclone- from -labutil- on SSC is analternative to 3.5. For Stata 6 and below, or indeed otherwise, you can just type in thecommand -label define- for a new group.Nickn.j.cox@durham.ac.ukMartin Weiss ALso, if you often get stuck with such problems, NJC`S -ssc d labutil- could be for you... Miranda KimHow can I create a new label set for the values of a variable, bymodifying an old one?For example if I have: label define agegrp 1 "17-24" 2 "25-34" 3 "35-44" 4 "45-54" 5 "55-63"and I want to create a new label set with a different name, say agegrp2that has the following values:1 "17-24" 2 "25-34" 3 "35-44" 4 ">=45"Can I use the label set agegrp with the option modify, to create a newlabel set rather than just overwriting the agegrp label?* * 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/

* * 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: RE: AW: label define***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**References**:**st: label define***From:*Miranda Kim <mk@mrc.soton.ac.uk>

**st: AW: label define***From:*"Martin Weiss" <martin.weiss1@gmx.de>

**st: RE: AW: label define***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**Re: st: AW: forvalues & replace not working under two 'not equal to' conditions** - Next by Date:
**RE: st: RE: AW: label define** - Previous by thread:
**st: RE: AW: label define** - Next by thread:
**RE: st: RE: AW: label define** - Index(es):

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