Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: help: mlogit and outreg


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: help: mlogit and outreg
Date   Wed, 8 Sep 2004 19:01:23 +0100 (BST)

(Spacing out, but not in the 1960s sense, you understand....)
x
x
x
x
x
x
x
x

Last Thursday, Nelson Lim wrote:

> I don't know what I am doing wrong. Outreg won't work with me. My
> dependent variable is int.

[...]

> .. xi: mlogit gpa i.race_n i.sex_n i.college_major_n i.college_quality
> i.yorotc i.scholarship_types_n i.branch
>
> .. outreg using test
> outreg only accepts integer-valued dependent variables for mlogit
> r(7);

A post today from Ben Jann about one of the little-known features from his
-estout- package (downloadable from SSC) prompted me to have a look at
Nelson's little local difficulty. And, by George, I reckon I've cracked
it:

. ssc inst estout
. use nelsons_data
. xi: mlogit gpa i.race_n i.sex_n i.college_major_n i.college_quality
  i.yorotc i.scholarship_types_n i.branch
. est store model
. estout model, stats(F r2_a rmse N) cells("b(star)" b(fmt(%9.2f)) t(par))
  varwidth(60) modelwidth(10) label unstack

Of course, some of the middle options like -modelwidth()- and t(par)- can
be edited (out) to taste, but it's the -unstack- option that will sort out
Nelson's columns (pun _fully_ intended).

I hope all that helps.

CLIVE NICHOLAS        |t: 0(044)191 222 5969
Politics              |e: [email protected]
Newcastle University  |http://www.ncl.ac.uk/geps
*
*   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