在Stata中,我们可以使用tabstat命令对每个组进行描述统计,例如: tabstatfamily_size education_level,by(group_var)stats(meansd) 上述命令将计算每个组内家庭成员数量和教育程度的均值和标准差。通过对每个组的描述统计结果进行比较,我们可以了解不同收入水平的家庭在这些特征上的差异。 比较不同区域的经济发展水平 ...
The user has control over the behavior ofcutpoints()andcutquantiles(). They obeyifinwith optioncutifin, they can be group-specific with optioncutby, and they can be de-duplicated viadedup. Fixes numerical precision issues withpctile, altdef(e.g. seethis Statalist thread, which is a very...
(xu) drop xx xu * this bits cuts the y variable into three groups for each group of x egen yc=xtile(btom) if file, by(xc) nq(3) * forming the final 6 groups gen gp=10*xc+yc What I would like to do is cut the y variable for each group of x based on the 30th and ...