I would like to export results from the margins command in separate columns, specifically, by a binary variable. The margins output command (executed after a "logit" command) is:
margins [bivar], at([continuous var] = (0(10)100)) post
Using outreg2, I can export the columns as:
Margin
_at#bivar
1#bivar no .1800177
1#bivar yes .090439
2#bivar no .1826294
2#bivar yes .0919386
3#bivar no .1852689
Is it possible to export by bivar columns? such as:
bivar no bivar yes
1#bivar no .1800177 1#bivar yes .090439
2#bivar no .1826294 2#bivar yes .0919386
Thanks in advance for your help
margins [bivar], at([continuous var] = (0(10)100)) post
Using outreg2, I can export the columns as:
Margin
_at#bivar
1#bivar no .1800177
1#bivar yes .090439
2#bivar no .1826294
2#bivar yes .0919386
3#bivar no .1852689
Is it possible to export by bivar columns? such as:
bivar no bivar yes
1#bivar no .1800177 1#bivar yes .090439
2#bivar no .1826294 2#bivar yes .0919386
Thanks in advance for your help
Comment