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]

Re: st: logistic regression complex samples

From   qing ye <>
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' &
				local s_EI=r(sum)
				quietly sum  L(`k').BE_t_1 if  trade_date_yearformat==`i' &
				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?

*   For searches and help try:

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