在第二讲数据处理里,您讲到过等分样本,命令是
sort wage
gen g_wage=group(5)
可是这个命令不能考虑进权重。请问如何可以将权重考虑进去来等分样本呢?比如一篇文献里的分组步骤:
The procedure first ranks children from lowest to highest according to the amount of equivalized earnings in each year. The samples in each year are then divided into 100 equally sized groups, taking household sampling weights into account.