Stata for paper

stata 워드(word)로 리그레션 값 도출, 엑셀로 값 저장

sopark 2023. 1. 15. 05:48

reg y x1, robust outreg2 using myreg.doc, replace ctitle(Model 1)
reg y x1 x2, robust outreg2 using myreg.doc, append ctitle(Model 2)

(ex)
gen comco=real(comcode)
reg na2018 na2017 i.comco
outreg2 using test.txt, append excel
 (replace word or replace excel로 시작>>append excel)


use "http://dss.princeton.edu/training/Panel101.dta", clear

 

 

https://www.princeton.edu/~otorres/Outreg2.pdf