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
Overlaying plots created with adjustrcspline and mfxrcsplineHi all, I've recently started using Maartin Buis's excellent tools for interpreting the results of …
Panel Unit Root TestHello Everyone, I am working on studying the relationship between military expenditure (independent …
4 Treatments, 3 Visits. Comparing change across visits between treatmentsGood Morning I was hoping that you would be able to offer some advice and guidance for a problem I…
Adjusting confounders in ITSA (Single-group)Dear all, I am using Single-group ITSA (Linden, 2015), for measuring the population-level impact of …
Deleting the missing values (not entire observations) of a variableSuppose I have the following table: ID Preferences 1 2 1 . 1 . 2 . 2 3 3 . 3 . 3 …
Subscribe to:
Post Comments (Atom)
0 Response to Generating dummy based on company classification
Post a Comment