I get frustrated time and again by the fact that join variables need to have identical names in both datasets for Stata to perform the join, so finally I decided to ask.
In SQL, names don't matter as long as I specify, which variables to match on e.g. "SELECT * FROM a, b WHERE a.v1 = b.v2"
Why can't it work in similar fashion in Stata? I'd appreciate any explanations that could soothe my pain over this issue.
Related Posts with Joining when the join variable has a different name in two datasets
Panel data: the share of inter and intra variabilities in total variabilities for each variableHello. I have panel data. How could we calculate the share of inter and intra variabilities in total…
Accuracy of a new test using the diagti and sf(0) adjusted 95% CII have used the immediate command in STATA to calculate the accuracy and predictive values for a new…
Expand sample using levels of a variableHello statalist, I am using Stata 15.1. I would like to expand a sample using the levelsof one vari…
Cross sectional dependence/ xtpcseDear Members, I would like to know how do deal with cross sectional dependences. I have started doi…
Using gsem with ordered categorical mediatorsHi, I want to run a mediation analysis looking at the direct and indirect effect of adolescent pers…
Subscribe to:
Post Comments (Atom)
0 Response to Joining when the join variable has a different name in two datasets
Post a Comment