Bookmark and Share

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]

Re: st: Marginal Effects: CLogit


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: Marginal Effects: CLogit
Date   Sat, 6 Oct 2012 18:09:38 +0100

The help for -margins- starts off

margins [marginlist] [if] [in] [weight] [, response_options options]

    where marginlist is a list of factor variables or interactions that
    appear in the current estimation results.

That means what it says: so, you are asking something -margins- can't
do it if you offer up continuous variables _as if_ they were factor
variables. That just won't work.

The real questions are thus exactly what you want out of -margins-;
whether that makes sense, and how else to get it, on which others can
advise better than I can.

Nick

On Sat, Oct 6, 2012 at 5:51 PM, Wameq Raza <[email protected]> wrote:

> I was wondering if someone could kindly help me figure out how to get
> the marginal effects of my conditional logit model.
> The syntax I'm using:
>
> clogit hw cost_ time_ wait_,group(id)
> margins cost_ time_ wait_, predict(xb)
>
> These are logged alt specific variables, but the error STATA keeps on
> throwing back at me is:
> "cost_:  factor variables may not contain noninteger values"
>
> However, these are continuous variables and not factor vars. I'm not
> sure how exactly to proceed.
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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