Update to a program for saving a model fit as a dataset



Stata Technical Bulletin

23


Saved results

mlogtest saves in r():

r(combine) contains results of tests to combine categories. Rows represent all contrasts among categories; columns indicate
the categories contrasted, the chi-squared value, the degrees of freedom, and the p-value.

r(iia) contains results of the Hausman test of IIA assumption. Each row is one test. Columns indicate the omitted category of
a given test, the chi-squared value, the degrees of freedom, and the p-value.

r(wald) contains results of the Wald test that all coefficients of an independent variable equal zero.

r(Irtest) contains results of the LR test that all coefficients associated with an independent variable equal zero.

Methods and formulas

This section provides brief descriptions of each of the tests. For further details, check the Stata manual for mlogit, test,
and hausman. Full details along with citations to original sources are found in Long (1997). To make our discussion of the tests
clear, we begin with a brief summary of the multinomial logit model (
MNLM).

The multinomial logit model

For simplicity, we consider a model with three outcomes and three independent variables. The MNLM can be thought of as
simultaneously estimating binary logits among all pairs of the outcome categories. For example, with categories
A, B, and C
and independent variables æɪ, a⅛ and a⅛, the MNLM is in effect simultaneously estimating three binary models:

In


'P(Ax)'

ʃɔ(ɑlʃ).


In


'p(βxγ
,p⅛),


In


'P{Ax)'
P(B
x)


βθ,AC + βl,ACxl + β2,ACx2 + βs,ACx3

βθ,BC + βl,BCxl + β2,Bcχ2 + β3,Bcχ3

βθ,AB + βl,ABxl + β2,ABx2 + ∕¾,ABa


Note that three more equations could be listed, comparing C to A, C to B, and B to A. Given that the sum of the probabilities
for the outcomes must equal one, there is an implicit constraint on the three logits. Specifically,

In


'P{Ax)

P(⅛


-In


~P(Bx)~

,P⅛),


= In


'P{Ax)

Р(В|ж)


in terms of the parameters

βk,AC - βk,BC — βk,AB


mlogit estimates and prints only the nonredundant coefficients, which are determined by the basecategory() option or,
by default, the category with the largest number of cases. The commands mcross (Rogers 1995) and Iistcoef (Long and
Freese 2000) list coefficients for all comparisons of outcome categories.

Testing the effect of an independent variable

With J dependent categories, there are J — 1 nonredundant coefficients associated with each independent variable x^. The
hypothesis that
Xj. does not affect the dependent variable can be written as

Bals ∙ A,lBase — ’ ’ ’ — A,JBase — θ

where Base is the base category used in the comparison. Since ∕¾ιBaseBase is necessarily zero, the hypothesis imposes constraints
on J — 1 parameters. This hypothesis can be tested with either a Wald or a
LR test.

A LR test

First, estimate the full model Mp that contains all of the variables, with the resulting LR statistic LRF. Second, estimate
the restricted model
Mp formed by excluding variable x>s, with the resulting LR statistic LRR. This model has J — 1 fewer
parameters. Finally, compute the difference LRr
vsf = LRp — LRr which is distributed as chi-squared with J — 1 degrees of
freedom if the hypothesis that
x⅛ does not affect the outcome is true. mlogtest, Ir computes this test for each of the K
independent variables by making repeated calls to Stata’s Irtest. Note that this requires estimating K additional multinomial
logit models.



More intriguing information

1. sycnoιogιcaι spaces
2. Modelling Transport in an Interregional General Equilibrium Model with Externalities
3. Determinants of Household Health Expenditure: Case of Urban Orissa
4. Indirect Effects of Pesticide Regulation and the Food Quality Protection Act
5. The Challenge of Urban Regeneration in Deprived European Neighbourhoods - a Partnership Approach
6. The changing face of Chicago: demographic trends in the 1990s
7. AGRICULTURAL TRADE LIBERALIZATION UNDER NAFTA: REPORTING ON THE REPORT CARD
8. School Effectiveness in Developing Countries - A Summary of the Research Evidence
9. AN ANALYTICAL METHOD TO CALCULATE THE ERGODIC AND DIFFERENCE MATRICES OF THE DISCOUNTED MARKOV DECISION PROCESSES
10. DEVELOPING COLLABORATION IN RURAL POLICY: LESSONS FROM A STATE RURAL DEVELOPMENT COUNCIL
11. Publication of Foreign Exchange Statistics by the Central Bank of Chile
12. FDI Implications of Recent European Court of Justice Decision on Corporation Tax Matters
13. The name is absent
14. WP RR 17 - Industrial relations in the transport sector in the Netherlands
15. PROTECTING CONTRACT GROWERS OF BROILER CHICKEN INDUSTRY
16. 09-01 "Resources, Rules and International Political Economy: The Politics of Development in the WTO"
17. Infrastructure Investment in Network Industries: The Role of Incentive Regulation and Regulatory Independence
18. The InnoRegio-program: a new way to promote regional innovation networks - empirical results of the complementary research -
19. The name is absent
20. The Impact of Minimum Wages on Wage Inequality and Employment in the Formal and Informal Sector in Costa Rica