<p>希望打下帮我编个小程序,现在有HS-6位码的各种商品各个国家的单位出口价格(p)和出口量(q),在求出各种商品的世界平均价格(uv)后,把商品分成低、中、高三类,划分原则如下:</p><p>For each HS-6 product, we compute the world unit value average (noted UV). We then classify each flow:</p><p>– Flows with unit values verifying UV−25%, UV+25% belong to the medium range, along</p><p>with the last decile of [min, &nbsp;UV−25%] and the first decile of [ &nbsp;UV + 25%, max].</p><p>– The first nine deciles of [min, UV−25%] are considered low range.</p><p>– The last nine deciles of [UV +25%, max] are considered high range.</p><p>谢谢大家的帮助。</p>
Supposing your dataset is as follows:name priceA 10A 15… …B 20B 30… … Hope the Stata codes below will help you to solve your problem. sort nameegen int gname = group(name)qui tabu gnamelocal ngname = `r(r)'forvalue i = 1(1)`ngname' { qu ...