I have a database with longitudinal data with 55.000 observations that looks like this:
Array
I would like:
1) Remove all the ID that are not present from 2006-2010 (here remove B and C)
2) Create a dummy variable which takes 1 if the ID has recovered its profitability from 2006 and 0 if the ID has not be able to do so (here A would be 1, and D would be 0)
3) Create a variable that computes the time it took an ID to recover (here A it would be 3 years)
The idea is to make a regression with: xtgee ln(time_to_recover) = profitability + other variables (r&d expenses, debt, etc.). Si that I can asses the characteristics that drives to resilience (recovery) of companies.
Related Posts with Survival Analysis and Longidutinal Data
Question related to loop/foreach vvvHi, Using the below sample data, I am trying to obtain the number of values in b1 (id=50_512) that e…
Removing Blue Character ValuesHi, I am struggling at the moment with two -probably basic- issues. 1. I am working on the Italian…
compare incidence rate among three groupsDear colleagues. I already have definided the failure event (DEAD) and time variable (TIME), and I h…
Missing values in Latent class analysis with gsem in Stata 15 - different results in comparison with R's package poLCAI am using Stata Version 15.0 "gsem" command to get a latent class model fromm a sample with 6860 (i…
Dyadic data and clustered standard errorsHello, I have time-series dyadic data and need to run a regression (DV and IVs are absolute differe…
Subscribe to:
Post Comments (Atom)
0 Response to Survival Analysis and Longidutinal Data
Post a Comment