全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2004 2
2011-08-02

. 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.

二维码

扫码加我 拉你入群

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

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

全部回复
2011-8-2 10:15:23
要把相关的命令给出来,并要说明你分析的目的和过程是什么,才能提供帮助啊
二维码

扫码加我 拉你入群

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

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

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
我弄不明白这个变量要怎么生成啊,初学者,表达都有毛病,原谅我。你看看~~~
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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