Hot search terms: 360 Security Guard Office365 360 browser WPS Office iQiyi Huawei Cloud Market Tencent Cloud Store
science tools Storage: 856.71MB Time: 2022-04-18
Software introduction: Stata official version is a very excellent practical science statistics software. Stata official version is powerful, efficient and professional, and provides data analysis...
Recently, many friends have said that they still don’t know how to use Stata to sort data? The editor below will share with you the operation method of using Stata to sort data. Friends in need should quickly read this article.
Here we take the database that comes with Stata as an example. Enter the command [sysuse auto, clear] to import Stata’s own data set 1978 Automobile Data.
Next, we sort the variable Price in ascending order. Enter the command [sort price]. The following picture is a comparison before and after sorting.
If you want to sort in descending order, enter the command directly. The following figure is a comparison before and after the arrangement.
If you need to sort multiple variables in ascending order at the same time, list the variables directly after sort. For example, enter the command [sort weight turn length] to sort these three variables, the effect is as follows.
Similarly, to sort multiple variables in descending order, directly enter the command [gsort -weight turn length] to sort these three variables. The effect is as follows.
The above is the method shared by the editor to sort data using Stata. Friends who don’t know how to do it can learn it.
How to switch accounts to log in to iQiyi? -How to log in to iQiyi account switching account
How to capture the game with obs? -obs method of capturing games
How to set the encoder in obs? -obs method of setting the encoder
How to close and hide the OBS window in screen capture? -obs closes the method of hiding the OBS window in screen capture
How to set Traditional Chinese in obs? -obs method to set Traditional Chinese
What to do if there is no sound after reinstalling the computer system - Driver Wizard Tutorial
How to practice typing with Kingsoft Typing Guide - How to practice typing with Kingsoft Typing Guide
How to upgrade the bootcamp driver? How to upgrade the bootcamp driver
How to change QQ music skin? -QQ music skin change method
Driver President Download-How to solve the problem when downloading driver software is very slow