From the course: Advanced and Specialized Statistics with Stata
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Formatting the display of variables - Stata Tutorial
From the course: Advanced and Specialized Statistics with Stata
Formatting the display of variables
- [Man] Let's explore how to change the look of numerical data in Stata. How a variable's raw data appears, using commands like browse, edit, or list, is determined by how it is formatted. Stata will try to automatically format numbers to give you the best information, but this may not always be what you want. For example, you want want to change the justification of numbers to the left, or you may want to use European commas, or you may want to use leading zeros. Alternatively you may want to specify how many digits appear after the decimal point. Here are two examples of how three different numbers look with different formats. The first number is a small number with decimal points, the second is a small integer number, and the third is a very large number with nine characters. The first example show the Stata standard format, the next example is where the numbers have two decimal places, left alignment, European commas,…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
Formatting the display of variables5m 56s
-
(Locked)
Date and time variables6m 41s
-
(Locked)
Repeating commands by looping over variables5m 2s
-
(Locked)
Repeating commands by looping over numbers5m 34s
-
(Locked)
Repeating commands by looping within loops4m 43s
-
(Locked)
Accessing results saved from Stata commands7m 12s
-
(Locked)
Challenge: More on data management52s
-
(Locked)
Solution: More on data management5m 15s
-
(Locked)
-
-
-
-
-
-
-