I have been working with CPS ASEC and basic monthly sample. My sample is from 1995-2005.
I think it would be best to see what’s the maximum time CPSIDP shows up within 16 months cycle ( 4-8-4 cycle of CPS where they interview a household for 4 consecutive months , then give them a break for 8 months , and they take their interview for 4 consecutive months again till they never repeat their interview ever with same CPSIDP ). So, for a unique CPSIDP the longest amount of period can be tracked is - 16 months.
I need to create a transition variable for employed people using the basic monthly sample after creating a 16 months' panel data since it fits my research as well as CPS basic monthly sample provides the opportunity to track a unique CPSIDP for max 16 months. I'm using the following command to create the 16 months' panel :
```
gen time = ym(year, month)
forvalues t=372(1)680{
keep if (time==t & mish==8)|(time==t-16 & mish==1)
order cpsidp year month
sort cpsidp year month
by cpsidp: gen obs=_N
by cpsidp: drop if obs!=2
```
Does the following transition variable make sense for monthly samples like for ASEC in the above ??
```
sort cpsidp month
by cpsidp month: assert _N == 1
bys cpsidp: generate emp2unemp = unemployed==1 & employed[_n-1]==1
```
Please kindly help me with this monthly connecting panel of 16 months to eventually figure out the job transition thing . Though, I have been successfully coded the ASEC sample but with monthly sample kind of stuck. In case of yearly panel I created the transition variable like the following :
```
bys cpsidp (year): generate emp2unemp = unemployed==1 & employed[_n-1]==1
```
But, the above command I've made to create the transition form the basic monthly sample , I'm not entirely certain about that.
Could anyone kindly shed some light on this ? Appreciate the time !
Related Posts with Creating yearly and monthly panel to get job transition variable
Creating categorical variables with multiple different conditions from continuous variablesHi, I am trying to create a categorical variable of "activity". I want 0=<150 mins of activity. …
Marginal effects of binary explanatory variable after craggitDear Statalist, Greetings! I was trying to estimate the drivers of farmers adoption decions. My dep…
Using and interpreting multi level mixed effects logictic regression with nested clusteringI have a dataset with around 30,000 participants, clustered into 20,000 families which are further c…
predicted probability issueDear community! I am struggling with a choice of command to calculate predicted probabilities of eac…
combining histograms of different bin sizes and plotting gamma distribution on themHi all I have prepared histograms (attached) of % trip by trip lengths in the UK for two modes of t…
Subscribe to:
Post Comments (Atom)
0 Response to Creating yearly and monthly panel to get job transition variable
Post a Comment