I am trying to export a simple diff-in-diff table. I have included a sample of data down below.
I have tried the "diff" command and the "ieddtab" command. They require outside download, ssc install diff & ssc install ietoolkit
Below, I have an example of the simple DiD table I like and an attempted export. The export "runs" but it looks terrible and is not readable.
Does anyone have a good go-to command they use when exporting these kinds of simple tables?
ieddtab in_laborforce, time(survey_1998) treatment(treat)
asdoc ieddtab in_laborforce, time(survey_1998) treatment(treat), save(simple_DiD.doc)
clear
input float(in_laborforce treat control survey_1998)
0 0 1 0
0 0 1 0
0 1 0 0
0 1 0 0
0 0 1 0
1 0 1 0
1 1 0 0
0 0 1 0
0 0 1 0
0 0 1 0
1 1 0 1
0 0 1 1
0 0 1 1
1 1 0 1
1 0 1 1
1 0 1 1
1 1 0 0
1 0 1 0
1 0 1 0
1 0 1 0
1 1 0 0
1 0 1 0
1 0 1 0
0 1 0 0
0 1 0 0
0 0 1 0
1 0 1 1
0 0 1 1
0 0 1 1
0 0 1 1
0 0 1 1
0 0 1 1
1 1 0 1
0 1 0 1
end
I have tried the "diff" command and the "ieddtab" command. They require outside download, ssc install diff & ssc install ietoolkit
Below, I have an example of the simple DiD table I like and an attempted export. The export "runs" but it looks terrible and is not readable.
Does anyone have a good go-to command they use when exporting these kinds of simple tables?
ieddtab in_laborforce, time(survey_1998) treatment(treat)
asdoc ieddtab in_laborforce, time(survey_1998) treatment(treat), save(simple_DiD.doc)
clear
input float(in_laborforce treat control survey_1998)
0 0 1 0
0 0 1 0
0 1 0 0
0 1 0 0
0 0 1 0
1 0 1 0
1 1 0 0
0 0 1 0
0 0 1 0
0 0 1 0
1 1 0 1
0 0 1 1
0 0 1 1
1 1 0 1
1 0 1 1
1 0 1 1
1 1 0 0
1 0 1 0
1 0 1 0
1 0 1 0
1 1 0 0
1 0 1 0
1 0 1 0
0 1 0 0
0 1 0 0
0 0 1 0
1 0 1 1
0 0 1 1
0 0 1 1
0 0 1 1
0 0 1 1
0 0 1 1
1 1 0 1
0 1 0 1
end
Comment