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
Latent Class analyses and repeated measuresinput int ID byte(TIME_POINT A B C) 1 0 5 10 10 1 1 25 25 25 1 2 50 50 25 2 0 50 25 25 2 1 25 75 75 …
Help Reshaping/Merging dataDear all, I am using Stata 16, on mac. Here is snapshot of a piece of my dataset. I have collected d…
Table CreationHey Statalists, I have data with variable named district, hospital name and total number of cases ha…
GPH files compatibility: Stata 15 and 16Hi everyone, I am trying to open .gph files created in Stata 16 using Stata 15. However, I get this…
Regression Command for pooled DataHi.. I have four countries cross section data in my sample. i regressed separate regression for each…
Subscribe to:
Post Comments (Atom)
0 Response to outreg2
Post a Comment