Statalist


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

st: AW: how to manage estimation results


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: how to manage estimation results
Date   Thu, 22 Oct 2009 17:23:26 +0200

<> 

You could also use -postfile- here:


*************
clear*
set obs 10000

gen var1=rnormal() 
gen var2=29+int(70*runiform())
gen y=1+2*var1+rnormal() 

tempname hdle
cap erase info.dta
postfile `hdle' coeffvar1  /* 
*/ rsq using info

qui forv i=30/100 {
	reg y var1 if var2<`i', r
	post `hdle' (_b[var1]) (e(r2_a))
}

postclose `hdle'

u info, clear
gen number=_n
order number
l, h(30) noo sep(0)
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von David
Burgalassi
Gesendet: Donnerstag, 22. Oktober 2009 17:01
An: [email protected]
Betreff: st: how to manage estimation results 

I'm running the regression

forvalues i=30 (1) 100 {
regress dep var1 if var2<`i', r
/}

Now, having 70 results, I'd like to get a unique table with  
coefficients and statistics of all estimations.
I could find any help in Stata help. Can you solve my problem?

Thanks in advance,
David
*
*   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/


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index