Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Logit output


From   "Austin Nichols" <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Logit output
Date   Fri, 25 May 2007 15:01:31 -0400

Rachel--
I prefer -estout- myself, but you may want something like this:

prog qlogit
syntax [varlist] [if] [in] [, *]
qui logit `varlist' `if' `in' , `options'
tempname b v
mat `b'=e(b)
mat `v'=e(V)
local rhs: colnames e(b)
di "varname" _col(20) "coef" _col(40) "p-value"
forv i=1/`=colsof(`b')' {
di as res "`: word `i' of `rhs''" _c
di _col(20) `b'[1,`i'] _c
di _col(40) 2*norm(-abs(`b'[1,`i']/sqrt(`v'[`i',`i'])))
}
end

sysuse auto, clear
qlogit for len pr mpg

On 5/25/07, Rachel <academicgirl@gmail.com> wrote:
I'm having stata execute a very large number of Logit commands to
check for robustness, and I'm only interested in seeing the
coefficients and p-values.  Is there any way to

1. Suppress all output except covariate names, coefficient values and
p-values  and
2. To temporarily save the last p-value using ereturn or a similar
command?  (The manual entry for -Logit- does not list the significance
levels among the statistics that can be saved.)

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index