From | Roger Newson <[email protected]> |
To | [email protected] |
Subject | st: Re: Extended macro problem |
Date | Tue, 01 Jun 2004 10:00:59 +0100 |
At 00:17 01/06/04 -0700, Kaleb wrote (in reply to Fred):
Fred,Or Fred could have written the malfunctioning line as
You're going to groan yourself when you see the error. Everything's fine, but you're assuming the name of the label values is the same name as the categorical variable. In the case of sex, it works out, but edcat's label is edcode2 and what the code basically does is:
local edcatlab0 : label edcat 0
when what you really want is:
local edcatlab0 : label edcode2 0
Just add a line that grabs the correct label value name before this and you should be good.
Kaleb...
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |