Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: St: I am using a model with interactions. How can I obtain marginal effects


From   Austin Nichols <[email protected]>
To   [email protected]
Subject   Re: st: St: I am using a model with interactions. How can I obtain marginal effects
Date   Sat, 11 Feb 2006 13:22:54 -0500

Actually, Maarten, while that raised my eyebrows as well, I don't
think it is the source of the problem.
. local x "This is a test"
. di "`x'"
This is a test
. di "`x '"
This is a test
. di "`x      '"
This is a test

Clearly, the insertion of spaces is bad form, but does not result in a
syntax error.

On 2/11/06, Maarten buis <[email protected]> wrote:
> The problem is in the line: -local xb  _b[pcinc]*`meanpcinc '+_b[ratio1]*`meanratio1 '+_b[ii1]
> *`meanpcinc '*`meanratio1 '+_b[_cons]-. You call macros names `meanpcinc ' and `meanratio1 ' with
> a space. However you made the macros `meanpcinc' and `meanratio1', without space.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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