悬赏 15 个论坛币 未解决
STATA里如果做t-test, 并考虑quintile和weight 如何写code呢?
我现在想给一个变量ownership分为两组做t-test, 一个违规组,一个非违规组,这种是普通的t-test 大多数人都会。
我现在想在此基础上,做t-test
我有给权重变量(weight), ownership需要按照weight调整。其次,我需要把ownership分成4个不同的quintile. 这种情况下:
我想对比并得到ownership(1st quintile, weight)在违规组,和ownership(1st quintile, weight)在非违规组,两者之间的t-检验值,如何做呢?
同理我想对比并得到ownership(2nd quintile, weight)在违规组,和ownership(2nd quintile, weight)在非违规组,两者之间的t-检验值,如何做呢?
十分感谢 可以追加悬赏