Dear all,
I have a panel datatset of 74 countries with multiple daily observations. I have also four events A, B, C and D as dummy variables.
Array
As you can see from the Table, an event may occur multiple times per one date (ex: event A in 3/17/2020). Also, multiple events may occur in one time (e.g., event B, A and C in 3/19/2020).
I would like to merge these multiple observations in order to have just one observation per date with all occuring events. For example, for 3/19/2020 event A, 1; event B, 1; event C, 1; event D, 0. For 3/17/2020, event A, 1; event B, 0; event C, 0; event D, 0
Thank you in advance!
Jon.
Related Posts with Merging multiple observations per time in panel data.
Extracting the numbers after repeated characters in a string variableHello, I am trying to obtain the distance between two geographic locations using public transportat…
3SLS and heteroskedasticityHi, I'm running a system of equations model using reg3. Code: Code: reg3 (dlrgdp L.dlrgdp dzsly …
Identify missing observations unbalanced panelDear Stata users, I have an unbalanced panel data set with the following variables: id, year, nobirt…
Regression using variable given in decimal changeI'm doing ARIMA with several variables on a time series. Arima value decimalvar1 decimalvar2, ar(1) …
wanted to create a regression tables,needed a dependent variableI am working on a hedge funds dataset. I wanted to create a regression tables. For creating regressi…
Subscribe to:
Post Comments (Atom)
0 Response to Merging multiple observations per time in panel data.
Post a Comment