Statalist


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

st: est package


From   moleps islon <moleps2@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: est package
Date   Mon, 4 May 2009 19:17:56 +0200

Is there any way of
1) creating landscape rtf using esttab ??
2) Creating mutiple columns and combining them into one
supermatrix-g-, so that in the end one doesnt have to write out all
the variables in the p local ?? instead one could write esttab g ??


local p "a b c d e"

foreach g of local p {

	local r "hosp age sex_en primary optype"

	local t=0
	foreach x of local r {
		di"`x'"
		logistic `g' `x',vce(robust)
		eststo e`t'
		local elist `elist' e`t'
	
		local t=`t'+1
		
		}
eststo univariat`g': appendmodels `elist'
logistic mors_30 `r'
eststo multivariat`g'
}

esttab univariata multivariata univariatb multivariatb....multivariate
using unimulti`g'.rtf, nonumbers eform ci(2) ar2 b(a2) label title
("Time to death") mtitle replace modelwidth(6) varwidth(10)

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