[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:36:38 +0000 |

Yes I'm sorry I forgot to include this. BW Nick Cox wrote:

So, you should please remember to say that when you ask questions.Martin's advice to use -label copy- was based on the standard list default: you are assumed to be using the current version of Stataunless you specify otherwise.Nickn.j.cox@durham.ac.ukMiranda Kim Thank you Nick, I'm still using Stata 10, so labutil will come in handy! Nick Cox wrote:Otherwise put:1. See the -help- for -label-.2. In Stata 11, and indeed previously, -label define- defines orchangesentirely 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 inthecommand -label define- for a new group.Martin 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, sayagegrp2that 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/

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

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

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

- Prev by Date:
**Re: st: Summary Stat Table** - Next by Date:
**AW: st: Summary Stat Table** - Previous by thread:
**RE: st: RE: AW: label define** - Next by thread:
**st: close excel file from within Stata** - Index(es):

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