【发布时间】:2021-02-22 13:06:53
【问题描述】:
我目前正在对单亲和双亲家庭儿童的婚姻和离婚行为进行比较。 因此,我想在我的研究中添加一个描述性表格,显示我想要使用的所有重要变量。但我无法在我的表中添加任何百分比。 此外,有没有办法将两个家庭合并到一张桌子上? 我希望有人可以帮助我!谢谢。
我使用了代码:
asdoc sum age agewedcr agewed marcohrt divbest educ hrs2 childs madeg padeg if households == 1, dec(2)
asdoc sum age agewedcr agewed marcohrt divbest educ hrs2 childs madeg padeg if households == 2, dec(2)
【问题讨论】:
-
我建议使用 SSC 提供的
table1,您可以通过键入ssc install table1获得。然后您可以指定执行表by(households)。你也可以试试baselinetable包,它的语法更简单,但输出不太漂亮(IMO)。
标签: row stata percentage