全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2177 2
2014-06-02
现在这里感谢下大家解答我的问题。我是个STATA菜鸟,最近在写论文,但是突然遇到了这样一个问题,但是不知如何解答。问题如下:
Ownership type of the work unit of your  
primary job?                                                   Freq.     Percent        Cum.
----------------------------------------+-----------------------------------
Government Agencies and Party Agencies | 463        6.79        6.79
State and collective public service uni |         1,527      22.39       29.17
Civilian-run enterprises and public ser |          252        3.69       32.87
         Solely state owned enterprises |          628         9.21       42.08
              State holding enterprises |             805          11.80       53.88
     Solely collective owned enterprise |        172           2.52       56.40
         Collective holding enterprises |           193            2.83       59.23
       Solely private owned enterprises |        819         12.01       71.24
            Private holding enterprises |            329           4.82       76.06
       Solely Foreign owned enterprises |        177        2.59       78.65
          Foreign holding joint venture |          114          1.67       80.33
            State holding joint venture |           63           0.92       81.25
       Collective holding joint venture |          32          0.47       81.72
          Private holding joint venture |         87        1.28       82.99
              Self-employed Individuals |        892       13.08       96.07
                      Other enterprises |        268        3.93      100.00
----------------------------------------+-----------------------------------
                                  Total |      6,821      
我想形成一个新的变量,这个变量包含上述该变量的几个内容,比如包含Government Agencies and Party Agencies(1)、State and collective public service(2)、uni Civilian-run enterprises and public ser(3),该使用什么命令呢?
.


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2014-6-3 13:09:33
try: encode Ownership_type, gen(new_var)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-6-4 11:29:44
rosenbloog 发表于 2014-6-3 13:09
try: encode Ownership_type, gen(new_var)
多谢指导。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群