opensafely / tpp-sql-notebook

2 stars 0 forks source link

Capture output of stata model #28

Open CarolineMorton opened 4 years ago

CarolineMorton commented 4 years ago

Output something like:

image

alexwalkerepi commented 4 years ago

Stata packages like outreg2 can help with extracting coefficients from regression outputs, like this: https://github.com/ebmdatalab/crp_testing_antibiotics/blob/b11d6cfe5974183169793b4bd432cf28e9b2c592/notebooks/panel%20regression.do#L16 It needs to be installed in Stata ssc install outreg2