Hello,
I have a question regarding exporting the Stata table using outreg2. The following is my code:
foreach var in s109c2 s109c1a s109c1b s109c1c s109c1d s109c1e s109c1f s765t s765ba s765bb s765bc s765bd s765be s765bf diff_gr {
reg `var' rv treatment treat_rv if rv<35 & rv>=-35, r
outreg2 using "Table1.xls", replace nocons bdec(3) se ctitle("Linear RD, 1984-1989") keep (treatment) label
reg `var' rv treatment treat_rv if rv<47 & rv>=-48, r
outreg2 using "Table1.xls", append nocons bdec(3) se ctitle("Linear RD, 1983-1990") keep (treatment) label
reg `var' rv treatment treat_rv if rv<59 & rv>=-60, r
outreg2 using "Table1.xls", append nocons bdec(3) se ctitle("Linear RD, 1982-1991") keep (treatment) label
reg `var' rv treatment treat_rv if rv<83 & rv>=-84, r
outreg2 using "Table1.xls", append nocons bdec(3) se ctitle("Linear RD, 1980-1993") keep (treatment) label
}
But I do not get RDD coefficient for each variable in a different row after this. Just one variable. My question is, how can I export table with a row lable of each variable reporting the coefficient of treatment only, without mentioning treatment in the table? In general, do you have any suggestions for exporting this code to Excel? I'm stuck here. Thanks in advance.
Related Posts with outreg2
Creating panel data from cross sectional dataHi everyone, I am trying to create a panel dataset starting from cross-sectional data. Code: * Ex…
Find out what variables in .dta file are used in .do fileI am reviewing an old project by someone who is no longer reachable. I have her .dta file with inpu…
Multitple color graph barDear Stata users, I'm trying to produce a twoway graph, plotting size effect as bar and adding conf…
SFIToolkit in v16.0This question is about the display and displayln methods of the SFIToolkit added in Stata version 16…
Binary Variable GraphHi All; I need help about binaries. I reviewed the topics but i couldn't find solution. I have five…
Subscribe to:
Post Comments (Atom)
0 Response to outreg2
Post a Comment