[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: marginal effects after nlogit and clogit
On Monday, Sascha asked:
> my understanding is that -mfx- cannot be used to obtain marginal effects
> after -clogit- or -nlogit-
> (see www.stata.co.uk/support/faqs/stat/mfx_ologit.html)
This FAQ is for Stata version 7 only. At the top of the page there
is a message to that effect (we leave the version 7 FAQ's there for
version 7 users).
> How does one go about calculating marginal effects then after estimating
Please look at this FAQ:
This explains in detail why some prediction functions are suitable and
some are not.
In short, -mfx- calculates the partial derivatives of the predict
function specified, and so it needs to be a function of only the
covariates and the coefficients of the model. If the prediction function
is a function of some other quantity, then -mfx- cannot possibly know
how to take the derivative. So -mfx- does its best to check the predict
function and it refuses to calcuate the derivatives if there is any risk
it can't do it correctly.
There is a detailed example in the FAQ of how these checks are done
The only prediction functions I found that are suitable after -nlogit-
are xbb, xb1 and xb2. But these, I don't think, are terribly informative
(if you are seeking marginal effects not elasticities), because these
are linear functions of the covariates and coefficients, and so the
derivatives will just be the coefficients of the model.
* For searches and help try: