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
Albatross Plot - By() more than one variableI am creating an albatross plot (basically a scatter of p-values vs sample size) of compiled literat…
Testing difference between the odds ratios of two testsHello I am trying to predict a binary disease outcome (AD). I have two 'tests' that I would like to…
Calculating sigma convergence using nl model in stataHey, I am currently trying to evaluate sigma convergence on NUTS 3 level within the EU and was unsu…
Exporting Covariance Structure to Excel by YearHi All, I am running models using the GSEM command for three outcomes (gender wage gap, migrant wag…
Generate summed variablesDear Statlists, I have a dataset consisting of a large number of different products and their month…
Subscribe to:
Post Comments (Atom)
0 Response to Survival Analysis and Longidutinal Data
Post a Comment