Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

Re: st: RE: margins

From   Nick Cox <>
Subject   Re: st: RE: margins
Date   Wed, 11 May 2011 08:32:11 +0100

-margins- does not exist before Stata 11, so it may be presumed that
Ann is using Stata 11.

On Wed, May 11, 2011 at 7:40 AM, Jesper Lindhardsen
<> wrote:

> If you use Stata 11 then you should use ## instead of * if you want the
> full interaction terms, ie. logistic preterm i.bir_grp##i.age_gr2a
> Otherwise, it is difficult to say without your actual syntax (and Stata
> version).


> Am trying to use margins in the following model
> Logistic preterm i.bir_grp*i.age_gr2a  other categorical variables
> Bir_grp has 4 levels, and age_gp2a has 5 levels
> I get an error message "factor bir_grp not found in e(b)"
> Question , have I mis-specified the model  and how can I get margins to
> give me the table

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index