Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: "Label define" syntax for "all other values"

From   Dan Waldo <>
To   statalist <>
Subject   st: "Label define" syntax for "all other values"
Date   Thu, 23 Sep 2010 23:46:54 -0700 (PDT)

Dear list members,
Suppose that variable rr_job takes the values 1,2,3,...,999. Can I construct a format for this variable that specifies some values and lumps the rest into a catchall category? That is, can I write

label define rr_jobf 1 "Driver" 2 "Conductor" 3 "Brakeman" 4 "Fireman" <other> "All other jobs"

where <other> represents the syntax I don't know but means any value not elsewhere specified.


*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index