Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Drawing Histograms in Stata: A Step-by-Step Guide, Slides of Econometrics and Mathematical Economics

Learn how to create simple and complex histograms using stata software. This guide covers drawing histograms with continuous and discrete variables, using the 'by' option for comparison, and various customization options.

Typology: Slides

2011/2012

Uploaded on 11/10/2012

uzman
uzman 🇮🇳

4.8

(12)

144 documents

1 / 12

Toggle sidebar

Related documents


Partial preview of the text

Download Drawing Histograms in Stata: A Step-by-Step Guide and more Slides Econometrics and Mathematical Economics in PDF only on Docsity! 1 Graphs in Stata Introduction to Histogram Docsity.com 2 Objectives The Objectives of this lecture are: • Drawing Simple Histogram • Drawing Complex Histogram (the use of ‘By’ option) Docsity.com 5 Histogram The Histogram appears. Stata command for this is: graph twoway histogram mpg OR Simply histogram mpg Docsity.com 6 Histogram Try changing the options ‘fraction’, ‘frequency’ and ‘percent’ as well. And see the resulted Histograms. Docsity.com 7 Histogram-Use of BY( ) option You can also use the ‘by( )’ option with the two way graph. Select ‘mpg’ as variable, Select ‘discrete data’ and Select ‘density’ on the y-axis. Docsity.com 10 Histogram-Use of BY( ) option To compare the results more closely, Go to tab named ‘By’ and change the ‘Layout’ to Row and Select ‘2’ as the number of rows and Click OK. Docsity.com 11 Histogram-Use of BY( ) option The following graph appears. Docsity.com 12 Histogram-Use of BY( ) option You can get the same graph by changing the ‘Layout’ to ‘columns’ and Select ‘1’ as the number of columns. Docsity.com
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved