Definitive way to match Stata weighted xtile command using Python?

后端 未结 2 1912
遇见更好的自我
遇见更好的自我 2021-01-19 00:50

For a project, I need to replicate some results that currently exist in Stata output files (.dta) and were computed from an older Stata script. The new version of the projec

相关标签:
2条回答
  • 2021-01-19 01:33

    Did you know that you can just read Stata's code?

    . ssc install adoedit
    . adoedit xtile
    
    0 讨论(0)
  • 2021-01-19 01:52

    Here's a screenshot of the formulas from Stata 12 manuals (StataCorp. 2011. Stata Statistical Software: Release 12. College Station, TX: StataCorp LP, p. 501-502). If this does not help, you might ask this question on Statalist or contact Philip Ryan (the author of the original code) directly.

    enter image description hereenter image description here

    0 讨论(0)
提交回复
热议问题