During data analysis frequently we have to manipulate data to generate, recode, or rename variables. Data management is an essential component of data analysis plan. In this blog post, I will show how to import a dataset, generate new variables, recode and rename variables. Ideally, data management and data analysis are done using a Read More …
Category: STATA
Basic Graphs in Stata
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 …
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 …
Let’s Talk Stata!
Stata is a statistical software package widely used in the Schools and Programs in Public Health in the U.S. It is popular among students and novice users because of its user-friendly menu driven interface and among faculty and researchers due to its easy to use do-files. Do files are text files that execute Stata Read More …