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...
Scatter plot with Country name and R-squareHi, I would like to create a scatter plot with a fitted regression line, along with R^2 and display…
Estimating margins for mprobit after CMPI have estimated a multinomial probit model with selection using the cmp command. I am trying to est…
bar graph with a binary variable over yearsHello, I need some help creating a graph in stata and could use expert guidance. I have a binary va…
Weight Calculation for OLS Model Utilizing Survey Data and Census DataHello, This is my first post here, and I'm very glad to join Statalist. I've been a passive user of…
How to fill in last-month selling price of each firm based on year and month?Hi all, The panel data I have is to analyse firms' problems. Now, the following table shows the basi…
Subscribe to:
Post Comments (Atom)
0 Response to Avoiding merge m:m problem...
Post a Comment