How to use Stata - Detailed introduction to the method of merging data with Stata
Time: 2020-12-28Source: Huajun Software TutorialAuthor: Xiaoyuer
Maybe some friends still don’t know how to use Stata to merge data? So for those who don’t know, come and take a look at the detailed method of merging data with Stata shared by the editor. I hope that through the study of this tutorial, it can be helpful to everyone.
Use the merge command syntax: merge [varlist] using filename [filename...] [optione]; where [varlist] represents the new variable to be merged, and using filename refers to the file path to be merged with the original file.
First open the first source file water1.dta, sort it by year, and then save it in overwrite mode
Open the second source file water2.dta and sort it by year.
Use the merge command to merge two files
Save the merged results and view the merged data
The above is the detailed method of merging data with Stata shared by the editor. Friends in need should not miss it.
Popular recommendations
-
WinQSB
Version: 2.0Size: 93MB
This 64-bit WinQSB installation package is designed for Windows 10 and Windows
11 system design, the biggest feature is that it can run directly without a virtual machine. Users can...
-
MathType
Version: 7.8.2Size: 39.13MB
MathType (mathematical formula editor) is developed by Design
A professional mathematical formula editing tool developed by Science Company. MathType function is...
-
MathType
Version: 7.8.2Size: 50MB
MathType is a professional mathematical formula editor that can be used with Office
Compatible with more than 700 programs such as word and Excel, it is convenient for users to edit math test papers,...
-
MathType Chinese version
Version: v6.9bSize: 9.87 MB
MathType is a powerful mathematical formula editor that can add complex mathematical formulas and symbols to various documents. It can be used to edit data...
-
MathType (mathematical formula editor)
Version: 7.8.2Size: 39.13MB
MathType formula editor is a powerful mathematical formula editor specially prepared for science students. MathType math formula editor is used to edit math test...