framerge: Merging data between frames

Kerui Du, Qiaowen Chen · The Stata Journal Promoting communications on statistics and Stata · 2025

We introduce a new command, framerge , based on the official Stata commands frlink and frget . Our command allows Stata users to efficiently link frames and copy variables from another frame into the current frame based on match key variables. framerge supports multiple data-matching relationships, including 1:1, m:1, 1:m, and m:m ( joinby ). In this article, we detail the general idea, syntax, and examples for the framerge command.

Read the paper · More papers on PaperTik