Dear Statalisters:
I have the following file #1:
clear
input byte(firmid ownerid) float own byte level
1 4 10 1
1 3 53.8 1
2 5 100 2
3 6 50 2
3 7 50 2
6 8 20 3
8 9 20 4
end
that I need to merge with fie #2:
clear
input byte(ownerid ownerid2) float own2 byte level2
1 4 10 1
1 3 53.8 1
2 5 100 2
3 6 50 2
3 7 50 2
6 8 20 3
8 9 20 4
end
using the variable "ownerid"
the "ownerid" variable can appear more than once both in the master and using data files. Considering prior posts saying that it is not a good idea to use the merge m:m command, I am wondering on how to merge these to files that have an "m:m" structure, but without using the merge m:m.
thank you all for your help and stay safe,
LR
Related Posts with Avoiding merge m:m problem...
Fama&MacBeth: xtfmb function. Time-fixed effectsHello statalisters, My case is that of an unbalanced panel data composed by 25,714 companies ("cusi…
What estimation methods can endogenicity, heteroskedasticity, autocorrelation and fixed effects be solved without using GMM?Hello netizens of Stata forum. I have a panel of 13 countries and 8 years. I tried with the GMM but …
Constraint function in optimize()Hello, I'm currently facing the following problem: I'm trying to minimize the variance of a portfol…
Arellano & BondHi there, I am looking for some advice on using the xtabond command. In an effort to study the rel…
Keeping mutliple observationsHello, I am currently working with a complete dataset with all firms in a country. However, I only …
Subscribe to:
Post Comments (Atom)
0 Response to Avoiding merge m:m problem...
Post a Comment