I have a set of companies with the date they were founded and the date they were acquired by other company. I'd like to duplicate this observation as much times as the difference between the date the company was created and 2018, identifying each observation with a dummy variable that will be 1 in the year the company was acquired.
Thanks in advance for any suggestion!
Related Posts with Create multiple observations from a current one considering a specific variable
Tobit in Difference in Differencewhen i run the tobit regression tobit lexp_care year stats g_stats_yr,ll(0) margins,dydx (*)atmeans …
Converting data information into variable labelI got a spreadsheet with its first row contains the variable names and second row contains the corre…
areg vs reghdfe vs xtreg with a group of controlling variables and fixed effectsHi Statalist, I want to run OLS regression on my dataset and I need advice on if I should choose ar…
Dropping value label for a variableHi! I have a dataset in stata in which I want to string a numeric variable called bopael. When I tr…
gsem: a two-equation multilevel model with two random effectsDear all, I am running a two-equation multilevel model with random intercepts at the nation and reg…
Subscribe to:
Post Comments (Atom)
0 Response to Create multiple observations from a current one considering a specific variable
Post a Comment