Bookmark and Share

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


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

st: outreg2 Question


From   Stephen Amrock <[email protected]>
To   [email protected]
Subject   st: outreg2 Question
Date   Fri, 4 Feb 2011 10:32:03 -0500

Dear StataList,

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.

Best wishes and thanks,
Steve A.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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