Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: outreg2 Question

From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: outreg2 Question
Date   Fri, 4 Feb 2011 15:36:26 +0000

As a general comment: There are, it would be guessed from download data, many appreciative users of -outreg2- on this list, but my impression is that they don't often answer questions on it. The author of -outreg2- is not a member of this list. So I'd advise contacting him directly. 

[email protected] 

Stephen Amrock

I am using Stata 11.1 for Mac OS X 10.5.8. I am attempting to use
outreg2 to create a table that shows a series of univariate
relationships with categorical response variables' ORs along the rows,
and columns corresponding to variable name, regression coefficient,
and standard error (common in medical journals). I believe help
understanding how outreg2 calls a list of stored estimates would
resolve the problem.

I have tried to create and call an estimate list for outreg2 as follows --

local modelvars x1 x2 x3
local model i.x1 i.x2 i.x3
local i = 0
foreach x of local model {
        local ++i
	qui logit y `x' , vce(cl clustervar) or
	local word: word `i' of `modelvars'
	estimates store estuni`word'
	local univarlist `univarlist' estuni`word'
outreg2 `model' `univarlist' using figure1.xls , onecol ef sideway
label excel alpha(0.001, 0.01, 0.05)

--- but this yields an error in calling the list of estimates. How
ought this be designated? Any help would be much appreciated.

*   For searches and help try:

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