From the course: The Modern Stata Playbook: Critical Enhancements You Need to Know
Unlock this course with a free trial
Join today to access over 25,100 courses taught by industry experts.
Managing multiple datasets with frames - Stata Tutorial
From the course: The Modern Stata Playbook: Critical Enhancements You Need to Know
Managing multiple datasets with frames
Data analysts often need to juggle multiple data sets. Stata allows you to load, manage, and even merge multiple data sets concurrently without having to close or overwrite your current data. And this can all be done with frames. But why should you use frames? Here are some of the many reasons. You can switch between multiple data sets without saving or reloading. You can keep, clean, and modify your data side by side. You can link and merge data across different frames without using temporary files, and you can store your result in separate frames. The primary command to access and modify frames is the frame command, or frames. Both spellings work. There are many different types of frame commands. Here is a list of a few of them. Make sure you use the primary help file for frames to familiarize yourself with the various different commands. So let's have a look at frames in action. Okay, here I am in Stata and I've got an empty data set. I've also closed the variables window because…