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
Latent Class analyses .Hi to everybody.. I run a latent class model using the command "traj" The better model is the model…
Drop all observations with similar variables, except for the earliest?Dear statalists I have struggled with a problem in STATA 16.0 for a couple of days now, and hope th…
Exact Wilcoxon Signed Rank testHello, I hope this is the right place to ask. I am currently using the exact wilcoxon signed rank te…
Spost packageI use STATA 13.1 however I cannot find and isntall the spost packages . When I search for these pack…
xtreg by groupI have a pooled panel data. The model is Yi,t+j=aj*Xi,t +bi,t (fixed effect) +... To make it simple,…
Subscribe to:
Post Comments (Atom)
0 Response to Generating dummy based on company classification
Post a Comment