楼主: a593488625
2227 2

[数据管理求助] 从已有某个变量生成符合该变量若干特征的新变量 [推广有奖]

  • 0关注
  • 0粉丝

已卖:15份资源

大专生

28%

还不是VIP/贵宾

-

威望
0
论坛币
49 个
通用积分
0
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
177 点
帖子
32
精华
0
在线时间
61 小时
注册时间
2010-4-14
最后登录
2019-5-5

楼主
a593488625 发表于 2014-6-2 11:28:41 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
现在这里感谢下大家解答我的问题。我是个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),该使用什么命令呢?
.


二维码

扫码加我 拉你入群

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

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

关键词:变量生成 新变量 Enterprises Individuals Enterprise collective primary service public 论文

沙发
rosenbloog 发表于 2014-6-3 13:09:33
try: encode Ownership_type, gen(new_var)

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

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-30 01:54