Dear all,
I am a new Stata user and this is the first time I use this forum.
I need to conduct a survival time analysis to determine the impact of certain covariates on the likelihood of a company being downgraded. So the event is a downgrade compared to the previous quarter.
My dataset is a panel data containing an id variable for several companies, a qdate variable for the time (e.g. 2000q1), a dummy variable equal to 1 if a downgrade occurs in a certain quarter and a list of explanatory variable X1, X2, X3, etc. For every firm there might be multiple downgrades.
I used the code: stset qdate, id(id variable) failure(downgrade) exit(qdate==.) scale(1)
Is this the correct way? From what I read, there might be an issue with the survival time variable. If so how can I correct it and properly declare the dataset to be of a surival time nature?
I hope my question is clear and to be able to obtain some help.
I remain available for any clarifications and I apologize if there are any mistakes in the formulation of my question
Kind regards,
Related Posts with Doubts on how to correctly declare a dataset to be survival time
How to save each Latent Class model (n=3) as predictor to run a regression model?Hi there, I am trying to look at the typologies of food outlets (within 1km from home) and eating be…
Minimum Detectable Effect Using Non-parametric Power Simulations on Existing Data and AssignmentI am interested in calculating the minimum detectable effect (MDE) using non-parametric power simula…
Replacing values in multiple string variableI have string variables asset1-asset25. For each variable, I want to change NA to missing values Th…
Oaxaca decompositionHi friends, I am trying to estimate the ethnic pay gap in Sri Lanka and want to use oaxaca decompos…
Randomized Inference for Panel Data-ritest- is a easy way to do Randomized Inference (thanks Simon HeB), but I'm not certain it works t…
Subscribe to:
Post Comments (Atom)
0 Response to Doubts on how to correctly declare a dataset to be survival time
Post a Comment