Hello,
I am struggeling with creating a publication quality table which contains a chi squared test and the expected values if chi2 would be equal to zero.
Therefore, I would like to give you an example from the data auto.dta in sysuse. When I use the tab-command with the options chi2 and expected, the Stata output shows me the table I want to compile into a publication quality table via the command esttab. But if I try to store the estimates of the table, Stata stores the table I build before the chi squared test and the chi squared test is missing. My question is now how am I able to store the outcomes of the Stata output containing the chi-square-test and the expected values?
For your information: I am using Stata 14 and the estout-package from ssc.
I would be very thankful for your advice.
Sincerly,
Pia Schmidt
I am struggeling with creating a publication quality table which contains a chi squared test and the expected values if chi2 would be equal to zero.
Therefore, I would like to give you an example from the data auto.dta in sysuse. When I use the tab-command with the options chi2 and expected, the Stata output shows me the table I want to compile into a publication quality table via the command esttab. But if I try to store the estimates of the table, Stata stores the table I build before the chi squared test and the chi squared test is missing. My question is now how am I able to store the outcomes of the Stata output containing the chi-square-test and the expected values?
Code:
sysuse auto.dta eststo: tab rep78 foreign, chi2 expected esttab est1 using filename.rtf
I would be very thankful for your advice.
Sincerly,
Pia Schmidt
Comment