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
Changing the value of many observationsHello So, i'm working on a pretty big dataset for a Norwegian insurance company, and I wanted to ch…
addplot error after marginsplotI ran a model (dependent variable = gender) and 3 independent variables – year, position_department_…
svy: mean and sorting estimated meansGreetings, Statalisters. I'm hoping this is something someone is willing and able to explain to me,…
Graph with Y axis as stringHi everyone, I have data like below: 25 different methods that generate 25 different estiamtion on …
Get the standard error from --exlogistic-- command?Hi all, I'm running the exlogistic command for meta-analysis, with id as study id: Code: exlogist…
Subscribe to:
Post Comments (Atom)
0 Response to Survival Analysis and Longidutinal Data
Post a Comment