一直困惑一个问题,就是求分位数以另一个变量为权重,这个权重怎么理解,看pctile的help文件,里面有一个例子:
Create pct containing the deciles of mpg weighted by weight, and create
variable percent containing the percentages
. pctile pct = mpg [w=weight], nq(10) genp(percent)
这个带了权重和没带权重有什么区别?请大神解答,谢谢