Hi,
I have used the command "merge", creating a new var called "epr" instead of "_merge":
merge m:1 id using "D:\Files\COST2020.dta",gen(epr)
And I want to use "merge" again but just if epr==2, that's mean:
merge m:1 id using "D:\Files\PW2020.dta", if epr==2
Is that possibible with this software? I hope you can help me
Kind Regards,
S.
Related Posts with Merge if merge
Adaptive lasso with fixed lambdaDear all, I am trying to run an adaptive Lasso where I want to input my choice of the penalty param…
Generating a yearly count variable based on a string identifierHi Everyone, I am looking to create a yearly count and cumulative sum variable based on a string id…
Is there any difference in endogeneity test when i have two endogeneous variables?Dear Statalist, I have a panel dataset of 10,000 households * 3 years. And based on the two-way fix…
Marge to dataDear Sir, I am trying to marge two data in Stata 14, individual with household data based on househo…
Create visitnumber variable for panel dataI have panel data, an example is shown below. How do I create a visit number by id (statenumber)? …
Subscribe to:
Post Comments (Atom)
0 Response to Merge if merge
Post a Comment