Stata has excellent graphics facility. In this blogpost I will demonstrate how to create five types of graphs in Stata: Histogram, Box plot, bar chart, and a pie chart. I will use the Framingham dataset – framingam.dta – that can be downloaded HERE. To see the codesheet read my blogpost on Descriptive Statistics. The Read More …
Month: June 2017
Descriptive Statistics
Data are the raw material of statistics. Descriptive statistics are used to describe data from a population or a sample. We measure characteristics of study subjects using variables. Age, gender, race, income, systolic blood pressure, serum cholesterol, blood group are examples of variables. To demonstrate descriptive statistics, I will use a subset of the Read More …
Creating a Log File
Every time you start a new Stata session make it a habit to: Change the working directory, and Create a log file. The first step allows you to link the Stata session to a folder on your computer’s hard drive and the second step creates a permanent record of your results. For example, let’s Read More …