楼主: sysuxiaogui
1983 2

事件史分析,各位大神帮帮忙,这个dur要怎么生成??? [推广有奖]

  • 2关注
  • 0粉丝

等待验证会员

大专生

8%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
320 点
帖子
29
精华
0
在线时间
34 小时
注册时间
2011-7-17
最后登录
2015-6-26

楼主
sysuxiaogui 发表于 2011-8-2 10:12:59 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

. des

Contains data from party.dta

  obs:         2,124                          

vars:             9                          18 Apr 2005 16:44

size:        40,356 (99.6% of memory free)

----------------------------------------------------------------------------

              storage  display     value

variable name   type   format      label      variable label

----------------------------------------------------------------------------

sample          byte   %4.0g       sample     sample interviewed

sex             byte   %4.0g       sex        sex of respondent

birth           byte   %4.0g       birth      year born

rstart01        byte   %4.0g       birth      1st activity: year began

rcat01          byte   %4.0g       rcat01     1st activity: occupation (group

party           byte   %4.0g       school     current party member?

cpjoin          byte   %4.0g       birth      year joined party

educ            float  %19.0g      educ      

occup           float  %13.0g      occup      

----------------------------------------------------------------------------

Sorted by:

   

We are interested in the process of joining the Party, how it varies by one’s education, one’s first job, age, and gender.

  • Create a variable dur, which equal the difference between the year of joining in the party and the birth year. According the Party’s constitution, only adults of 18 years or older can applied for the party membership. Therefore, we define people aged 18 or above as our risk set.

二维码

扫码加我 拉你入群

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

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

关键词:事件史分析 事件史 constitution Interested Respondent display storage memory

已有 1 人评分经验 收起 理由
葫芦娃大王 + 10 鼓励积极发帖讨论

总评分: 经验 + 10   查看全部评分

沙发
xge2000 发表于 2011-8-2 10:15:23
要把相关的命令给出来,并要说明你分析的目的和过程是什么,才能提供帮助啊
已有 1 人评分热心指数 收起 理由
liuzhenzhu + 2 热心帮助其他会员

总评分: 热心指数 + 2   查看全部评分

藤椅
sysuxiaogui 发表于 2011-8-2 10:22:08
xge2000 发表于 2011-8-2 10:15
要把相关的命令给出来,并要说明你分析的目的和过程是什么,才能提供帮助啊
gen dur=cpjoin-birth-18
tab dur,nol
recode dur(-97 -84 -77 -76 -63 -59 -57 -49 -6 -4 -2 -1=.)
tab dur,nol
gen id=_n
list in 1/10
expand dur
sort id
list id dur party sex educ occup
gen event=0
replace event=1 if party==1
list id dur party sex educ occup event
xi:logit event sex educ occup,nolog
xi:logit event sex educ occup,nolog or
我弄不明白这个变量要怎么生成啊,初学者,表达都有毛病,原谅我。你看看~~~

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

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