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
Firm/Entity Fixed EffectDear all, I try to include a Firm/Entity fixed effect in my regression model, but I cant specifical…
Store variables generated in a loop in macroHello, I am using a loop to decode and generate variables: Code: foreach var of varlist S9Q1a_1-S…
Trend analysis - ptrendHi Listers, I am interested in assessing the relationship between diabetes diagnosis (yes/no) and a…
Merging datasets with multiple observations per company IDHi, Newbie to Stata and trying two merge two datasets (one from Compustat and one from Execucomp) wi…
(Quasi-)Three-dimensional panel data with binary depedent and independent variablesDear Stata-community, I have just started my PhD and am quite new to stata and could use some guidan…
Subscribe to:
Post Comments (Atom)
0 Response to Doubts on how to correctly declare a dataset to be survival time
Post a Comment