Hi everyone,
I am looking to create a dummy variable based on another dummy variable for an identifier set.
I have a dummy called death which equals 1 if a CEO of any company died in a particular year and 0 otherwise. Now I wanted to create another dummy which will be equal to 1 for all the years for that company if a CEO died anytime inside the dataset and 0 if no CEO of that company died during the time period. Can anyone help me with the proper coding for that?
Thanks in advance
Related Posts with Generating dummy based on company classification
SEM modeling ( path model)Dear ll, I hope you are doing well. I'm working on my paper and i would like to study the mediatin…
VAR and Impulse response functionDear Statalists, I am working on a project where I need to 1. estimate the reduced form VAR to pred…
Generating Variable That Depicts IncreaseMy dataset comes from a survey with 5 waves that has a general score (variable GScore). I am trying …
sdid in case of unbalanced panelI need to run synthetic difference is difference regression. Therefore, I need balanced panel data. …
Separating a string variable into separate variablesI have a string variable CODEX which has the underlying cause of death coded first, and any secondar…
Subscribe to:
Post Comments (Atom)
0 Response to Generating dummy based on company classification
Post a Comment