Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: logistic regression complex samples


From   qing ye <yeqing1013@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: logistic regression complex samples
Date   Thu, 8 Dec 2011 01:09:34 +0800

Hi, I am wondering how do I report the statistics I calculated after
the loop as a table?

the following is my code:


forvalues i=1990 (1)2010 {
	foreach group of varlist FF_group_rank_0{
		forvalues n=1(1)6{
			forvalues k=-3(1)3 {
				local date=`i'
				local group=`n'
				local relative_year=`k'
				quietly sum  L(`k').EI_t if  trade_date_yearformat==`i' &
FF_group_rank_0==`n'
				local s_EI=r(sum)
				quietly sum  L(`k').BE_t_1 if  trade_date_yearformat==`i' &
FF_group_rank_0==`n'
				local s_BE=r(sum)
				local mean_EI_BE=`s_EI'/`s_BE'
				

					}
		}
		}
}

so I want to have the values of the variable mean_EI_BE, is there
anyway I can get this variable reported for each year and each group
as a table?  do I need to use things like matrix? how do I do it?

Best
Qing
*
*   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   |   Site index