Dear community,
I want to merge panel data for my master thesis, but my knowledge of econometrics is limited and cannot solve this problem. My panel data set are attached. I want to maintain all the data of subsidy.dta and add some additional data from export.dta.
In subsidy.dta, the country's subsidy to the world is annually. In export.dta, the country's export to another country is annually too. So, i hope the final data set is order by:
year country country2 export subsidy subsidy1 subsidy2...
2018 1 1 999 0 0 0
2018 1 2 988 0 0 0
2018 1 0 0 99 99 99
2017 1 1 999 0 0 0
2017 1 2 988 0 0 0
2017 1 0 0 90 99 99
could you please give me some advice? Thank you in advance for your time and help!
Array Array
Related Posts with How to use joinby to create a new panel data
Fixed and random effects WITHOUT using clustered robust standard errors (CRSE)Hi Statalist users. I'm new to this forum and would love to get some help from you guys. I'm worki…
Insert empty row by group conditionallyHi, I have a survey data like this: Code: input id sequence q1 q2 q3 q4 q5 001 1 1 3 2 1 5 001 …
Return code of data typeHello, I've noticed the codebook or describe commands don't include datatype in the return code lis…
Looping with both `var' and `i' simultaneouslyHello, I want to loop over my variable list, but also be able to have a number `i' that reflects th…
Looping through a list of strings; combining variables within stringsI have a series of household consumption surveys, each for every year, and I want to process each fi…
Subscribe to:
Post Comments (Atom)
0 Response to How to use joinby to create a new panel data
Post a Comment