Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Re lincom not recognising macros
From
Jennifer Dent <[email protected]>
To
[email protected]
Subject
st: Re lincom not recognising macros
Date
Tue, 26 Jun 2012 11:11:19 +0100
I'm trying to run lincom in stata 12 but I am having trouble when I use
a marco name, rather than a number.
This is what I have:
gen var1_prop = 0.46
gen var2_prop = 0.54
xi:xtmixed depvar indep1 indep2 || randomeffect
lincom _b[_cons] + _b[indep1]*var1_prop + _b[indepvar2]*var2_prop
Error: var1_prop not found
If I replace var1_prop and var2_prop with the actual numbers (i.e.
lincom _b[_cons] + _b[indep1]*0.46 + _b[indepvar2]*0.54), then stata is
happy. Is there a way to force lincom to recognise my numeric macors by
name, rather than to have to find and replace the names with numbers?
Many thanks in advance,
Jennifer
*
* 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/