Econ Stata Tutorial I: Reading, Organizing and Describing Data. Sanjaya DeSilva

Size: px
Start display at page:

Download "Econ Stata Tutorial I: Reading, Organizing and Describing Data. Sanjaya DeSilva"

Transcription

1 Econ Stata Tutorial I: Reading, Organizing and Describing Data Sanjaya DeSilva September 8, 2008

2 1 Basics When you open Stata, you will see four windows. 1. The Results window list all the commands you input and the results that Stata outputs. See the section Results for other ways of recording results. 2. The Command window is where you enter the commands, or instructions to stata. See the section Commands for other ways of doing this. 3. The Review window records your commands. If you want to reexecute a previous command, you can click on it once to make that command appear on the Command window or double-click to execute the command. If you would like to save a log of your commands, you can click the box on the top left of the Review window and save the review contents in a stata do file (See the Commands section for more details on do-files). 4. The Variables window list all the variables in your data. When you have to type variable names in your Command window, you can click on the relevant variables to make them appear in the Command window. 5. The menus on top provide a windows interface that can execute most stata commands without typing commands. This is a good way to learn the various functions of stata. You can also learn the syntax associated with each function because stata reports the corresponding command syntax in the Results window whenever you execute a menu-based 1

3 command. Beyond instructional purposes, I don t recommend the use of menu-based commands because they are more cumbersome to use and don t provide the same richness of options etc. 2 Preliminary Commands 1. clear - clears all data, variables etc. from memory 2. set mem xxxm - assigns memory to Stata. Here, xxx is a number that refers to the amount of megs you want to assign to stata (e.g. set mem 900m assigned 900M of RAM to stata). 3. set matsize xxx - sets the maximum number of variables in the data matrix (e.g. set matsize 200 allocates sufficient memory to accommodate 200 variables). 4. cd xxx - sets the working directory where xxx is the directory name. If you have all your data, do-files etc. in one directory, you can save yourself the bother of typing the entire directory every time you refer to the file if you start by setting the directory 3 Issuing Commands There are four ways to issue commands to Stata 1. Use menu based commands (just like in Word or Excel). Here, stata executes the corresponding command and reports the command as well as the result in the Results window. 2

4 2. Type one command at a time in the Command window. The commands you enter are logged in the Review window where there is an option to save the command log. 3. Type doedit to open a do-file. You can also open a do-file by clicking on the little icon with a pen and envelope sign. The do-file is a text file that can contain all your commands in a single file. This is the most efficient way to write and save your commands. If you want to execute commands in a do-file, go to the Tools menu, and pick one of the options. do executes the file, run does the same silently. It is also possible to run selected parts of the code by choosing do selection or simply highlighting the relevant code and saying do. 4. If you already have a do file, you can execute it by saying do xxx or silently execute by saying run xxx where xxx is the name of the do-file. 4 Reading Data 4.1 Data Types Stata accommodates several data types; numerical data in the byte, int, float, long and double formats, and various string formats for non-numeric data. Type help datatypes more more information on data-types. 4.2 Manual Data Entry If you want to manually type data, there are two ways to do this: 3

5 1. edit - opens a spreadsheet type data editor in a new window where you can either type in the data or cut and paste from a spreadsheet etc. When you are done you can click on preserve to create the data set, or restore to cancel any changes you made since the last preserve. You can assign variable names and labels by clicking on the top-most cell (shaded) in each column. If you don t assign variable names, stata will automatically assign names var1 var2 etc, and will leave the labels blank. See the section on variables for details. 2. You can also type, in a do-file, input datatype variable name datatype variable name...followed by the raw data separated by a space and each observation contained in a row. At the end, type end. For example, if you have the age, gender and income of five people, you can say input int age str04 gender float income 34 male female male male. 60 female end 4.3 Reading ASCII files Most data sets come as simple text (or ASCII) files. In some files, variables may be delimited by a space, comma, tab etc. In other files, the variables 4

6 are not delimited but are accompanied by a dictionary that describes which columns correspond to which variables. Some examples, 1. Space delimited file 34 male female male male. 60 female Comma delimited file 34,male, ,female, ,male, ,male,. 60,female, Fixed width file 34 male female male male. 60female

7 The last file must be accompanied by a dictionary that states the following age int 1-2 gender string 3-8 income float 9-13 where the intervals refer to the position of each variable in the data file. There are several commands that can be used to read ASCII files 1. infile: reads delimited ASCII files infile var1 var2... using filename, clear reads a delimited ASCII file (e.g. infile age gender income using hhdata.txt, clear) Note that the option clear ensures that the memory is cleared before reading new data. Make sure that you save the existing data if necessary before using the clear option. 2. infix: reads fixed width ASCII files infix var1 x1-x2 var2 x3-x4... using filename, clear (e.g. infix age 1-2 gender 3-8 income 9-13 using hhdata.txt, clear) 4.4 Reading Spreadsheet Files Stata can read spreadsheet files in two ways: 1. Type edit to open the data editor. Copy and paste the data from the spreadsheet to the editor. 2. insheet: reads spreadsheet data in to stata format. insheet using hhdata.csv, clear names reads a spreadsheet file that has names in the first row and data in the remaining rows 6

8 insheet age gender income using hhdata.csv, clear nonames reads a spreadsheet file where names are not included. Note that insheet works best when the spreadsheet file is saved as a worksheet in comma separated format (csv) in excel. 5 Log Files It is very important to save your data and code in a retrievable file. If you work with stata windows, all your commands and results will be in the RAM and will get erased when you close stata. 1. To save all your results in to a file, you need to open a log file with log using filename, options. The options available are replace to replace an existing log file of the same name, append to append the log to an existing log file, text to create a log file in text format [The default format for the stata log is the smcl format. See help translate to see how to convert a smcl file to the text format] 2. You can switch on and off the log file as needed in the code with log on and log off 3. You can (and should) close the log file at the end of your code with log close 4. To create a log containing just the commands (and not the results), use cmdlog using filename. You can then use the created log file to construct a do file. 7

9 6 Saving Data, Code and Results 1. Data files are saved in stata format with save filename. If you have used cd to set the directory, just type the filename, otherwise type the full directory and file name. If you want an existing file of the same name replaced, use save filename, replace 2. To save the commands entered through the command window, use the cmdlog command or the Save Review Contents option in the Review window. To save commands created in a do-file, click on the Save icon in the do-file window. 3. To save results, you need to first record the results in a log file. See the section on log files above for details. 7 Creating and Manipulating Variables 1. generate or gen: creates a new variable using algebraic manipulations of existing variables, e.g. gen birthyear=2008-age 2. gen with cond: creates a new variable using if-then type conditional operations. gen senior=cond(age 65,1,0) gen poor=cond(income< 20000,1,0) 3. replace replaces the values of an existing variable with new ones; e.g. replace income=income/1000 will convert the income from dollars to 8

10 1000s of dollars. 4. recode recodes specific values of a variable. Recode can be used to change the values of an existing variable or to construct a new variable from an existing one; e.g. recode education (0/5=1) (6/8=2) (9/12=3): replaces grade attained with a indicator for elementary, secondary etc. in the education variable. recode education (0/5=1) (6/8=2) (9/12=3), gen(edlevel): does the same but keep the original education variable as it is, and creates the edlevel variable with the new values. 8 Labeling Variables and Values In data sets that have many variables and values, it is always a good idea to assign descriptive labels to the variables and values. Not only does this help you to keep track of what the data represents, but also allows you to use meaningful descriptors (rather than the abbreviations used for variable names) in plots, tables etc. 1. label variable: assigns labels to variables, e.g lab var education highest grade attained 2. label define: defines value labels, e.g. lab def edlabel 1 primary 2 secondary You can use the add option to add an additional label to add existing 9

11 definition, e.g. lab def edlabel 3 tertiary, add 3. label value: assigns labels to values, e.g lab val edlevel edlabel assigns the value labels contained in edlabel to the values in variable edlevel. 4. label list list all the labels assigned. 5. label drop drops all labels from memory 6. label save saves all labels in a do-file. 9 Organizing the Data Set 1. drop var1 var2...: drops these variables from the data set. 2. keep var1 var2...: keeps only these variables in the data set, i.e. drops all but the specified variables. 3. move var1 var2: moves the variables var1 next to variable var2. 4. order var1 var2...: orders the variables in the data set in the way that is specified. 5. drop if condition: drops all observations that satisfy the specified condition, e.g. drop if age =65 drops all seniors from the sample. 6. keep if condition: keeps only the observations that satisfy the specified condition, e.g. keep if age =65 keeps only seniors in the sample. 10

12 7. sample xx: draws a random sample, where xx refers to a percentage or a number of observations if the option count is specified, e.g. sample 10: draws a 10 percent random sample. sample 10, count: draws a 10 observation random sample. 10 Describing and Summarizing Data 1. describe : list the number of observations, all variables and their labels. 2. summarize var1 var2: creates a table of basic summary statistics (no. of obs, mean, standard deviation, max, min) for the variables specified. If variables are not specified, all variables are reported. 3. summarize var1 var2..., detail: create a table of detailed summary statistics (median, percentiles, skewness etc.) 4. tabulate var1: For discrete variables, reports a frequency table 5. tabulate var1 var2: For two discrete variables, reports the cross-tabulations. 6. histogram var1: generates a histogram of the frequency distribution. The option bin() allows us to specify the number of bins to use. 11

Dr. Barbara Morgan Quantitative Methods

Dr. Barbara Morgan Quantitative Methods Dr. Barbara Morgan Quantitative Methods 195.650 Basic Stata This is a brief guide to using the most basic operations in Stata. Stata also has an on-line tutorial. At the initial prompt type tutorial. In

More information

Getting Our Feet Wet with Stata SESSION TWO Fall, 2018

Getting Our Feet Wet with Stata SESSION TWO Fall, 2018 Getting Our Feet Wet with Stata SESSION TWO Fall, 2018 Instructor: Cathy Zimmer 962-0516, cathy_zimmer@unc.edu 1) REMINDER BRING FLASH DRIVES! 2) QUESTIONS ON EXERCISES? 3) WHAT IS Stata SYNTAX? a) A set

More information

A Short Guide to Stata 10 for Windows

A Short Guide to Stata 10 for Windows A Short Guide to Stata 10 for Windows 1. Introduction 2 2. The Stata Environment 2 3. Where to get help 2 4. Opening and Saving Data 3 5. Importing Data 4 6. Data Manipulation 5 7. Descriptive Statistics

More information

Introduction to Stata - Session 2

Introduction to Stata - Session 2 Introduction to Stata - Session 2 Siv-Elisabeth Skjelbred ECON 3150/4150, UiO January 26, 2016 1 / 29 Before we start Download auto.dta, auto.csv from course home page and save to your stata course folder.

More information

A Quick Guide to Stata 8 for Windows

A Quick Guide to Stata 8 for Windows Université de Lausanne, HEC Applied Econometrics II Kurt Schmidheiny October 22, 2003 A Quick Guide to Stata 8 for Windows 2 1 Introduction A Quick Guide to Stata 8 for Windows This guide introduces the

More information

An Introduction to Stata Part I: Data Management

An Introduction to Stata Part I: Data Management An Introduction to Stata Part I: Data Management Kerry L. Papps 1. Overview These two classes aim to give you the necessary skills to get started using Stata for empirical research. The first class will

More information

You will learn: The structure of the Stata interface How to open files in Stata How to modify variable and value labels How to manipulate variables

You will learn: The structure of the Stata interface How to open files in Stata How to modify variable and value labels How to manipulate variables Jennie Murack You will learn: The structure of the Stata interface How to open files in Stata How to modify variable and value labels How to manipulate variables How to conduct basic descriptive statistics

More information

After opening Stata for the first time: set scheme s1mono, permanently

After opening Stata for the first time: set scheme s1mono, permanently Stata 13 HELP Getting help Type help command (e.g., help regress). If you don't know the command name, type lookup topic (e.g., lookup regression). Email: tech-support@stata.com. Put your Stata serial

More information

Introduction to Minitab 1

Introduction to Minitab 1 Introduction to Minitab 1 We begin by first starting Minitab. You may choose to either 1. click on the Minitab icon in the corner of your screen 2. go to the lower left and hit Start, then from All Programs,

More information

Introduction to Stata: An In-class Tutorial

Introduction to Stata: An In-class Tutorial Introduction to Stata: An I. The Basics - Stata is a command-driven statistical software program. In other words, you type in a command, and Stata executes it. You can use the drop-down menus to avoid

More information

Principles of Biostatistics and Data Analysis PHP 2510 Lab2

Principles of Biostatistics and Data Analysis PHP 2510 Lab2 Goals for Lab2: Familiarization with Do-file Editor (two important features: reproducible and analysis) Reviewing commands for summary statistics Visual depiction of data- bar chart and histograms Stata

More information

Stata version 13. First Session. January I- Launching and Exiting Stata Launching Stata Exiting Stata..

Stata version 13. First Session. January I- Launching and Exiting Stata Launching Stata Exiting Stata.. Stata version 13 January 2015 I- Launching and Exiting Stata... 1. Launching Stata... 2. Exiting Stata.. II - Toolbar, Menu bar and Windows.. 1. Toolbar Key.. 2. Menu bar Key..... 3. Windows..... III -...

More information

Stata v 12 Illustration. First Session

Stata v 12 Illustration. First Session Launch Stata PC Users Stata v 12 Illustration Mac Users START > ALL PROGRAMS > Stata; or Double click on the Stata icon on your desktop APPLICATIONS > STATA folder > Stata; or Double click on the Stata

More information

BIOSTATISTICS LABORATORY PART 1: INTRODUCTION TO DATA ANALYIS WITH STATA: EXPLORING AND SUMMARIZING DATA

BIOSTATISTICS LABORATORY PART 1: INTRODUCTION TO DATA ANALYIS WITH STATA: EXPLORING AND SUMMARIZING DATA BIOSTATISTICS LABORATORY PART 1: INTRODUCTION TO DATA ANALYIS WITH STATA: EXPLORING AND SUMMARIZING DATA Learning objectives: Getting data ready for analysis: 1) Learn several methods of exploring the

More information

Introduction to Stata Toy Program #1 Basic Descriptives

Introduction to Stata Toy Program #1 Basic Descriptives Introduction to Stata 2018-19 Toy Program #1 Basic Descriptives Summary The goal of this toy program is to get you in and out of a Stata session and, along the way, produce some descriptive statistics.

More information

Basic Stata Tutorial

Basic Stata Tutorial Basic Stata Tutorial By Brandon Heck Downloading Stata To obtain Stata, select your country of residence and click Go. Then, assuming you are a student, click New Educational then click Students. The capacity

More information

I Launching and Exiting Stata. Stata will ask you if you would like to check for updates. Update now or later, your choice.

I Launching and Exiting Stata. Stata will ask you if you would like to check for updates. Update now or later, your choice. I Launching and Exiting Stata 1. Launching Stata Stata can be launched in either of two ways: 1) in the stata program, click on the stata application; or 2) double click on the short cut that you have

More information

Lab 7 Statistics I LAB 7 QUICK VIEW

Lab 7 Statistics I LAB 7 QUICK VIEW Lab 7 Statistics I This lab will cover how to do statistical calculations in excel using formulas. (Note that your version of excel may have additional formulas to calculate statistics, but these formulas

More information

A Short Introduction to STATA

A Short Introduction to STATA A Short Introduction to STATA 1) Introduction: This session serves to link everyone from theoretical equations to tangible results under the amazing promise of Stata! Stata is a statistical package that

More information

Stata: A Brief Introduction Biostatistics

Stata: A Brief Introduction Biostatistics Stata: A Brief Introduction Biostatistics 140.621 2005-2006 1. Statistical Packages There are many statistical packages (Stata, SPSS, SAS, Splus, etc.) Statistical packages can be used for Analysis Data

More information

Introduction to Stata First Session. I- Launching and Exiting Stata Launching Stata Exiting Stata..

Introduction to Stata First Session. I- Launching and Exiting Stata Launching Stata Exiting Stata.. Introduction to Stata 2016-17 01. First Session I- Launching and Exiting Stata... 1. Launching Stata... 2. Exiting Stata.. II - Toolbar, Menu bar and Windows.. 1. Toolbar Key.. 2. Menu bar Key..... 3.

More information

1. Basic Steps for Data Analysis Data Editor. 2.4.To create a new SPSS file

1. Basic Steps for Data Analysis Data Editor. 2.4.To create a new SPSS file 1 SPSS Guide 2009 Content 1. Basic Steps for Data Analysis. 3 2. Data Editor. 2.4.To create a new SPSS file 3 4 3. Data Analysis/ Frequencies. 5 4. Recoding the variable into classes.. 5 5. Data Analysis/

More information

TYPES OF VARIABLES, STRUCTURE OF DATASETS, AND BASIC STATA LAYOUT

TYPES OF VARIABLES, STRUCTURE OF DATASETS, AND BASIC STATA LAYOUT PRIMER FOR ACS OUTCOMES RESEARCH COURSE: TYPES OF VARIABLES, STRUCTURE OF DATASETS, AND BASIC STATA LAYOUT STEP 1: Install STATA statistical software. STEP 2: Read through this primer and complete the

More information

A quick introduction to STATA:

A quick introduction to STATA: 1 Revised September 2008 A quick introduction to STATA: (by E. Bernhardsen, with additions by H. Goldstein) 1. How to access STATA from the pc s at the computer lab After having logged in you have to log

More information

Opening a Data File in SPSS. Defining Variables in SPSS

Opening a Data File in SPSS. Defining Variables in SPSS Opening a Data File in SPSS To open an existing SPSS file: 1. Click File Open Data. Go to the appropriate directory and find the name of the appropriate file. SPSS defaults to opening SPSS data files with

More information

/23/2004 TA : Jiyoon Kim. Recitation Note 1

/23/2004 TA : Jiyoon Kim. Recitation Note 1 Recitation Note 1 This is intended to walk you through using STATA in an Athena environment. The computer room of political science dept. has STATA on PC machines. But, knowing how to use it on Athena

More information

Subject index. ASCII data, reading comma-separated fixed column multiple lines per observation

Subject index. ASCII data, reading comma-separated fixed column multiple lines per observation Subject index Symbols %fmt... 106 110 * abbreviation character... 374 377 * comment indicator...346 + combining strings... 124 125 - abbreviation character... 374 377.,.a,.b,...,.z missing values.. 130

More information

Lab 1: Basics of Stata Short Course on Poverty & Development for Nordic Ph.D. Students University of Copenhagen June 13-23, 2000

Lab 1: Basics of Stata Short Course on Poverty & Development for Nordic Ph.D. Students University of Copenhagen June 13-23, 2000 Lab 1: Basics of Stata Short Course on Poverty & Development for Nordic Ph.D. Students University of Copenhagen June 13-23, 2000 This lab is designed to give you a basic understanding of the tools available

More information

ECO375 Tutorial 1 Introduction to Stata

ECO375 Tutorial 1 Introduction to Stata ECO375 Tutorial 1 Introduction to Stata Matt Tudball University of Toronto Mississauga September 14, 2017 Matt Tudball (University of Toronto) ECO375H5 September 14, 2017 1 / 25 What Is Stata? Stata is

More information

International Graduate School of Genetic and Molecular Epidemiology (GAME) Computing Notes and Introduction to Stata

International Graduate School of Genetic and Molecular Epidemiology (GAME) Computing Notes and Introduction to Stata International Graduate School of Genetic and Molecular Epidemiology (GAME) Computing Notes and Introduction to Stata Paul Dickman September 2003 1 A brief introduction to Stata Starting the Stata program

More information

Appendix II: STATA Preliminary

Appendix II: STATA Preliminary Appendix II: STATA Preliminary STATA is a statistical software package that offers a large number of statistical and econometric estimation procedures. With STATA we can easily manage data and apply standard

More information

Introduction to Stata. Getting Started. This is the simple command syntax in Stata and more conditions can be added as shown in the examples.

Introduction to Stata. Getting Started. This is the simple command syntax in Stata and more conditions can be added as shown in the examples. Getting Started Command Syntax command varlist, option This is the simple command syntax in Stata and more conditions can be added as shown in the examples. Preamble mkdir tutorial /* to create a new directory,

More information

Introduction to Stata - Session 1

Introduction to Stata - Session 1 Introduction to Stata - Session 1 Simon, Hong based on Andrea Papini ECON 3150/4150, UiO January 15, 2018 1 / 33 Preparation Before we start Sit in teams of two Download the file auto.dta from the course

More information

Select Cases. Select Cases GRAPHS. The Select Cases command excludes from further. selection criteria. Select Use filter variables

Select Cases. Select Cases GRAPHS. The Select Cases command excludes from further. selection criteria. Select Use filter variables Select Cases GRAPHS The Select Cases command excludes from further analysis all those cases that do not meet specified selection criteria. Select Cases For a subset of the datafile, use Select Cases. In

More information

A quick introduction to STATA:

A quick introduction to STATA: 1 HG Revised September 2011 A quick introduction to STATA: (by E. Bernhardsen, with additions by H. Goldstein) 1. How to access STATA from the pc s at the computer lab and elsewhere at UiO. At the computer

More information

STATA Tutorial. Elena Capatina Office hours: Mondays 10am-12, SS5017

STATA Tutorial. Elena Capatina Office hours: Mondays 10am-12, SS5017 STATA Tutorial Elena Capatina elena.statahelp@gmail.com Office hours: Mondays 10am-12, SS5017 Stata 10: How to get it Buy from Stata website, pick up at Robarts: http://www.stata.com/order/new/edu/gradplans/cgpcampusorder.html

More information

Minitab Notes for Activity 1

Minitab Notes for Activity 1 Minitab Notes for Activity 1 Creating the Worksheet 1. Label the columns as team, heat, and time. 2. Have Minitab automatically enter the team data for you. a. Choose Calc / Make Patterned Data / Simple

More information

เพ มภาพตามเน อหาของแต ละบท. Microsoft Excel Benjamas Panyangam and Dr. Dussadee Praserttitipong. Adapted in English by Prakarn Unachak

เพ มภาพตามเน อหาของแต ละบท. Microsoft Excel Benjamas Panyangam and Dr. Dussadee Praserttitipong. Adapted in English by Prakarn Unachak เพ มภาพตามเน อหาของแต ละบท Microsoft Excel 2016 Benjamas Panyangam and Dr. Dussadee Praserttitipong Adapted in English by Prakarn Unachak 204100 IT AND MODERN LIFE 1. Excel Basics 2. Calculation and Formula

More information

An Introduction To Stata and Matlab. Liugang Sheng ECN 240A UC Davis

An Introduction To Stata and Matlab. Liugang Sheng ECN 240A UC Davis An Introduction To Stata and Matlab Liugang Sheng ECN 240A UC Davis Stata and Matlab in our Lab Go to the admin webpage http://admin.econ.ucdavis.edu/computing/ Follow the instruction http://admin.econ.ucdavis.edu/computing/ts_windows/t

More information

Pivot Tables, Lookup Tables and Scenarios

Pivot Tables, Lookup Tables and Scenarios Introduction Format and manipulate data using pivot tables. Using a grading sheet as and example you will be shown how to set up and use lookup tables and scenarios. Contents Introduction Contents Pivot

More information

Introduction to STATA 6.0 ECONOMICS 626

Introduction to STATA 6.0 ECONOMICS 626 Introduction to STATA 6.0 ECONOMICS 626 Bill Evans Fall 2001 This handout gives a very brief introduction to STATA 6.0 on the Economics Department Network. In a few short years, STATA has become one of

More information

If you use Stata for Windows, starting Stata is straightforward. You just have to double-click on the wstata (or stata) icon.

If you use Stata for Windows, starting Stata is straightforward. You just have to double-click on the wstata (or stata) icon. Stata Handout 1. Starting Stata If you use Stata for Windows, starting Stata is straightforward. You just have to double-click on the wstata (or stata) icon. If you use Stata for Unix, type at the athena

More information

An Introduction to STATA ECON 330 Econometrics Prof. Lemke

An Introduction to STATA ECON 330 Econometrics Prof. Lemke An Introduction to STATA ECON 330 Econometrics Prof. Lemke 1. GETTING STARTED A requirement of this class is that you become very comfortable with STATA, a leading statistical software package. You were

More information

Data Analysis using SPSS

Data Analysis using SPSS Data Analysis using SPSS 2073/03/05 03/07 Bijay Lal Pradhan, Ph.D. Ground Rule Mobile Penalty Participation Involvement Introduction to SPSS Day 1 2073/03/05 Session I Bijay Lal Pradhan, Ph.D. Object of

More information

There are 3 main windows, and 3 main types of files, in SPSS: Data, Syntax, and Output.

There are 3 main windows, and 3 main types of files, in SPSS: Data, Syntax, and Output. U6310 Quantitative Techniques Lab - September 2001 Intro to SPSS SPSS works like this: You have a data set (either you create one or use an existing file such as the GSS). You choose analysis techniques

More information

AcaStat User Manual. Version 8.3 for Mac and Windows. Copyright 2014, AcaStat Software. All rights Reserved.

AcaStat User Manual. Version 8.3 for Mac and Windows. Copyright 2014, AcaStat Software. All rights Reserved. AcaStat User Manual Version 8.3 for Mac and Windows Copyright 2014, AcaStat Software. All rights Reserved. http://www.acastat.com Table of Contents INTRODUCTION... 5 GETTING HELP... 5 INSTALLATION... 5

More information

For many people, learning any new computer software can be an anxietyproducing

For many people, learning any new computer software can be an anxietyproducing 1 Getting to Know Stata 12 For many people, learning any new computer software can be an anxietyproducing task. When that computer program involves statistics, the stress level generally increases exponentially.

More information

STAT:5400 Computing in Statistics

STAT:5400 Computing in Statistics STAT:5400 Computing in Statistics Introduction to SAS Lecture 18 Oct 12, 2015 Kate Cowles 374 SH, 335-0727 kate-cowles@uiowaedu SAS SAS is the statistical software package most commonly used in business,

More information

WINKS SDA Windows KwikStat Statistical Data Analysis and Graphs Getting Started Guide

WINKS SDA Windows KwikStat Statistical Data Analysis and Graphs Getting Started Guide WINKS SDA Windows KwikStat Statistical Data Analysis and Graphs Getting Started Guide 2011 Version 6A Do these tutorials first This series of tutorials provides a quick start to using WINKS. Feel free

More information

User Services Spring 2008 OBJECTIVES Introduction Getting Help Instructors

User Services Spring 2008 OBJECTIVES  Introduction Getting Help  Instructors User Services Spring 2008 OBJECTIVES Use the Data Editor of SPSS 15.0 to to import data. Recode existing variables and compute new variables Use SPSS utilities and options Conduct basic statistical tests.

More information

Stata version 12. Lab Session 1 February Preliminary: How to Screen Capture.. 2. Preliminary: How to Keep a Log of Your Stata Session..

Stata version 12. Lab Session 1 February Preliminary: How to Screen Capture.. 2. Preliminary: How to Keep a Log of Your Stata Session.. Stata version 12 Lab Session 1 February 2013 1. Preliminary: How to Screen Capture.. 2. Preliminary: How to Keep a Log of Your Stata Session.. 3. Preliminary: How to Save a Stata Graph... 4. Enter Data:

More information

LAB 1 INSTRUCTIONS DESCRIBING AND DISPLAYING DATA

LAB 1 INSTRUCTIONS DESCRIBING AND DISPLAYING DATA LAB 1 INSTRUCTIONS DESCRIBING AND DISPLAYING DATA This lab will assist you in learning how to summarize and display categorical and quantitative data in StatCrunch. In particular, you will learn how to

More information

LAB 1: Graphical Descriptions of Data

LAB 1: Graphical Descriptions of Data LAB 1: Graphical Descriptions of Data Part I: Before Class 1) Read this assignment all the way through; 2) Know the terms and understand the concepts of: - scatterplots - stemplots - distributions - histograms

More information

SPSS. Faiez Mussa. 2 nd class

SPSS. Faiez Mussa. 2 nd class SPSS Faiez Mussa 2 nd class Objectives To describe opening and closing SPSS To introduce the look and structure of SPSS To introduce the data entry windows: Data View and Variable View To outline the components

More information

Introduction to Stata Getting Data into Stata. 1. Enter Data: Create a New Data Set in Stata...

Introduction to Stata Getting Data into Stata. 1. Enter Data: Create a New Data Set in Stata... Introduction to Stata 2016-17 02. Getting Data into Stata 1. Enter Data: Create a New Data Set in Stata.... 2. Enter Data: How to Import an Excel Data Set.... 3. Import a Stata Data Set Directly from the

More information

Basics of Stata, Statistics 220 Last modified December 10, 1999.

Basics of Stata, Statistics 220 Last modified December 10, 1999. Basics of Stata, Statistics 220 Last modified December 10, 1999. 1 Accessing Stata 1.1 At USITE Using Stata on the USITE PCs: Stata is easily available from the Windows PCs at Harper and Crerar USITE.

More information

A Short Guide to Stata 14

A Short Guide to Stata 14 Short Guides to Microeconometrics Fall 2016 Prof. Dr. Kurt Schmidheiny Universität Basel A Short Guide to Stata 14 1 Introduction 2 2 The Stata Environment 2 3 Where to get help 3 4 Additions to Stata

More information

SPSS for Survey Analysis

SPSS for Survey Analysis STC: SPSS for Survey Analysis 1 SPSS for Survey Analysis STC: SPSS for Survey Analysis 2 SPSS for Surveys: Contents Background Information... 4 Opening and creating new documents... 5 Starting SPSS...

More information

API-202 Empirical Methods II Spring 2004 A SHORT INTRODUCTION TO STATA 8.0

API-202 Empirical Methods II Spring 2004 A SHORT INTRODUCTION TO STATA 8.0 API-202 Empirical Methods II Spring 2004 A SHORT INTRODUCTION TO STATA 8.0 Course materials and data sets will assume that you are using Stata to complete the analysis. Stata is available on all of the

More information

ECONOMICS 452* -- Stata 12 Tutorial 1. Stata 12 Tutorial 1. TOPIC: Getting Started with Stata: An Introduction or Review

ECONOMICS 452* -- Stata 12 Tutorial 1. Stata 12 Tutorial 1. TOPIC: Getting Started with Stata: An Introduction or Review Stata 12 Tutorial 1 TOPIC: Getting Started with Stata: An Introduction or Review DATA: auto1.raw and auto1.txt (two text-format data files) TASKS: Stata 12 Tutorial 1 is intended to introduce you to some

More information

Statistics 528: Minitab Handout 1

Statistics 528: Minitab Handout 1 Statistics 528: Minitab Handout 1 Throughout the STAT 528-530 sequence, you will be asked to perform numerous statistical calculations with the aid of the Minitab software package. This handout will get

More information

INTRODUCTION to. Program in Statistics and Methodology (PRISM) Daniel Blake & Benjamin Jones January 15, 2010

INTRODUCTION to. Program in Statistics and Methodology (PRISM) Daniel Blake & Benjamin Jones January 15, 2010 INTRODUCTION to Program in Statistics and Methodology (PRISM) Daniel Blake & Benjamin Jones January 15, 2010 While we are waiting Everyone who wishes to work along with the presentation should log onto

More information

Math 227 EXCEL / MEGASTAT Guide

Math 227 EXCEL / MEGASTAT Guide Math 227 EXCEL / MEGASTAT Guide Introduction Introduction: Ch2: Frequency Distributions and Graphs Construct Frequency Distributions and various types of graphs: Histograms, Polygons, Pie Charts, Stem-and-Leaf

More information

OVERVIEW OF WINDOWS IN STATA

OVERVIEW OF WINDOWS IN STATA OBJECTIVES OF STATA This course is the series of statistical analysis using Stata. It is designed to acquire basic skill on Stata and produce a technical reports in the statistical views. After completion

More information

Empirical Asset Pricing

Empirical Asset Pricing Department of Mathematics and Statistics, University of Vaasa, Finland Texas A&M University, May June, 2013 As of May 17, 2013 Part I Stata Introduction 1 Stata Introduction Interface Commands Command

More information

IENG484 Quality Engineering Lab 1 RESEARCH ASSISTANT SHADI BOLOUKIFAR

IENG484 Quality Engineering Lab 1 RESEARCH ASSISTANT SHADI BOLOUKIFAR IENG484 Quality Engineering Lab 1 RESEARCH ASSISTANT SHADI BOLOUKIFAR SPSS (Statistical package for social science) Originally is acronym of Statistical Package for the Social Science but, now it stands

More information

ICSSR Data Service. Stata: User Guide. Indian Council of Social Science Research. Indian Social Science Data Repository

ICSSR Data Service. Stata: User Guide. Indian Council of Social Science Research. Indian Social Science Data Repository http://www.icssrdataservice.in/ ICSSR Data Service Indian Social Science Data Repository Stata: User Guide Indian Council of Social Science Research ICSSR Data Service Contents: 1. Introduction 1 2. Opening

More information

Stata version 14 Also works for versions 13 & 12. Lab Session 1 February Preliminary: How to Screen Capture..

Stata version 14 Also works for versions 13 & 12. Lab Session 1 February Preliminary: How to Screen Capture.. Stata version 14 Also works for versions 13 & 12 Lab Session 1 February 2016 1. Preliminary: How to Screen Capture.. 2. Preliminary: How to Keep a Log of Your Stata Session.. 3. Preliminary: How to Save

More information

STATA Tutorial. Introduction to Econometrics. by James H. Stock and Mark W. Watson. to Accompany

STATA Tutorial. Introduction to Econometrics. by James H. Stock and Mark W. Watson. to Accompany STATA Tutorial to Accompany Introduction to Econometrics by James H. Stock and Mark W. Watson STATA Tutorial to accompany Stock/Watson Introduction to Econometrics Copyright 2003 Pearson Education Inc.

More information

ICT & MATHS. Excel 2003 in Mathematics Teaching

ICT & MATHS. Excel 2003 in Mathematics Teaching ICT & MATHS Excel 2003 in Mathematics Teaching Published by The National Centre for Technology in Education in association with the Project Maths Development Team. Permission granted to reproduce for educational

More information

Appendix II: STATA Preliminary

Appendix II: STATA Preliminary Appendix II: STATA Preliminary STATA is a statistical software package that offers a large number of statistical and econometric estimation procedures. With STATA we can easily manage data and apply standard

More information

Intro to Stata for Political Scientists

Intro to Stata for Political Scientists Intro to Stata for Political Scientists Andrew S. Rosenberg Junior PRISM Fellow Department of Political Science Workshop Description This is an Introduction to Stata I will assume little/no prior knowledge

More information

STATA 13 INTRODUCTION

STATA 13 INTRODUCTION STATA 13 INTRODUCTION Catherine McGowan & Elaine Williamson LONDON SCHOOL OF HYGIENE & TROPICAL MEDICINE DECEMBER 2013 0 CONTENTS INTRODUCTION... 1 Versions of STATA... 1 OPENING STATA... 1 THE STATA

More information

ECONOMICS 351* -- Stata 10 Tutorial 1. Stata 10 Tutorial 1

ECONOMICS 351* -- Stata 10 Tutorial 1. Stata 10 Tutorial 1 TOPIC: Getting Started with Stata Stata 10 Tutorial 1 DATA: auto1.raw and auto1.txt (two text-format data files) TASKS: Stata 10 Tutorial 1 is intended to introduce (or re-introduce) you to some of the

More information

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9 Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9 Contents 1 Introduction to Using Excel Spreadsheets 2 1.1 A Serious Note About Data Security.................................... 2 1.2

More information

An Introduction to Stata Exercise 1

An Introduction to Stata Exercise 1 An Introduction to Stata Exercise 1 Anna Folke Larsen, September 2016 1 Table of Contents 1 Introduction... 1 2 Initial options... 3 3 Reading a data set from a spreadsheet... 5 4 Descriptive statistics...

More information

WINKS SDA 7. Version 7

WINKS SDA 7. Version 7 WINKS SDA 7 Version 7 (For BASIC and PROFESSIONAL Editions of WINKS SDA) PowerPoint Slides for this Guide are svailable at the website Click Instructors. www.texasoft.com TexaSoft, 2015 Do these tutorials

More information

Lecture 2: Advanced data manipulation

Lecture 2: Advanced data manipulation Introduction to Stata- A. Chevalier Content of Lecture 2: Lecture 2: Advanced data manipulation -creating data -using dates -merging and appending datasets - wide and long -collapse 1 A] Creating data

More information

Using Excel, Chapter 2: Descriptive Statistics

Using Excel, Chapter 2: Descriptive Statistics 1 Using Excel, Chapter 2: Descriptive Statistics Individual Descriptive Statistics using Excel Functions 2 A Summary of Descriptive Statistics Using the Analysis ToolPak (Windows Users) 3 A Summary of

More information

HOW TO USE THE EXPORT FEATURE IN LCL

HOW TO USE THE EXPORT FEATURE IN LCL HOW TO USE THE EXPORT FEATURE IN LCL In LCL go to the Go To menu and select Export. Select the items that you would like to have exported to the file. To select them you will click the item in the left

More information

STATA Version 9 10/05/2012 1

STATA Version 9 10/05/2012 1 INTRODUCTION TO STATA PART I... 2 INTRODUCTION... 2 Background... 2 Starting STATA... 3 Window Orientation... 4 Command Structure... 4 The Help Menu... 4 Selecting a Subset of the Data... 5 Inputting Data...

More information

Dr Wan Nor Arifin Unit of Biostatistics and Research Methodology, Universiti Sains Malaysia.

Dr Wan Nor Arifin Unit of Biostatistics and Research Methodology, Universiti Sains Malaysia. Introduction to SPSS Dr Wan Nor Arifin Unit of Biostatistics and Research Methodology, Universiti Sains Malaysia. wnarifin@usm.my Outlines Introduction Data Editor Data View Variable View Menus Shortcut

More information

Basic concepts and terms

Basic concepts and terms CHAPTER ONE Basic concepts and terms I. Key concepts Test usefulness Reliability Construct validity Authenticity Interactiveness Impact Practicality Assessment Measurement Test Evaluation Grading/marking

More information

Revision of Stata basics in STATA 11:

Revision of Stata basics in STATA 11: Revision of Stata basics in STATA 11: April, 2016 Dr. Selim Raihan Executive Director, SANEM Professor, Department of Economics, University of Dhaka Contents a) Resources b) Stata 11 Interface c) Datasets

More information

CLAREMONT MCKENNA COLLEGE. Fletcher Jones Student Peer to Peer Technology Training Program. Basic Statistics using Stata

CLAREMONT MCKENNA COLLEGE. Fletcher Jones Student Peer to Peer Technology Training Program. Basic Statistics using Stata CLAREMONT MCKENNA COLLEGE Fletcher Jones Student Peer to Peer Technology Training Program Basic Statistics using Stata An Introduction to Stata A Comparison of Statistical Packages... 3 Opening Stata...

More information

Introduction (SPSS) Opening SPSS Start All Programs SPSS Inc SPSS 21. SPSS Menus

Introduction (SPSS) Opening SPSS Start All Programs SPSS Inc SPSS 21. SPSS Menus Introduction (SPSS) SPSS is the acronym of Statistical Package for the Social Sciences. SPSS is one of the most popular statistical packages which can perform highly complex data manipulation and analysis

More information

Getting started with Stata 2017: Cheat-sheet

Getting started with Stata 2017: Cheat-sheet Getting started with Stata 2017: Cheat-sheet 4. september 2017 1 Get started Graphical user interface (GUI). Clickable. Simple. Commands. Allows for use of do-le. Easy to keep track. Command window: Write

More information

An Introduction to Minitab Statistics 529

An Introduction to Minitab Statistics 529 An Introduction to Minitab Statistics 529 1 Introduction MINITAB is a computing package for performing simple statistical analyses. The current version on the PC is 15. MINITAB is no longer made for the

More information

GRAPHING IN EXCEL EXCEL LAB #2

GRAPHING IN EXCEL EXCEL LAB #2 GRAPHING IN EXCEL EXCEL LAB #2 ECON/BUSN 180: Quantitative Methods for Economics and Business Department of Economics and Business Lake Forest College Lake Forest, IL 60045 Copyright, 2011 Overview This

More information

Reading data in SAS and Descriptive Statistics

Reading data in SAS and Descriptive Statistics P8130 Recitation 1: Reading data in SAS and Descriptive Statistics Zilan Chai Sep. 18 th /20 th 2017 Outline Intro to SAS (windows, basic rules) Getting Data into SAS Descriptive Statistics SAS Windows

More information

1. Creating a data set using the data editor 2. Importing an Excel data file

1. Creating a data set using the data editor 2. Importing an Excel data file Introduction This illustration describes two ways to enter data into Stata 1. Creating a data set using the data editor 2. Importing an Excel data file Example -. This data set has n=4 observations on

More information

A QUICK INTRODUCTION TO STATA

A QUICK INTRODUCTION TO STATA A QUICK INTRODUCTION TO STATA This module provides a quick introduction to STATA. After completing this module you will be able to input data, save data, transform data, create basic tables, create basic

More information

Department of Economics Spring 2016 University of California Economics 154 Professor Martha Olney Stata Lesson Wednesday February 17, 2016

Department of Economics Spring 2016 University of California Economics 154 Professor Martha Olney Stata Lesson Wednesday February 17, 2016 University of Califnia Economics 154 Berkeley Profess Martha Olney Stata Lesson Wednesday February 17, 2016 [1] Where to find the data sets http://www.econ.berkeley.edu/~olney/spring16/econ154 There are

More information

SOCY7709: Quantitative Data Management Instructor: Natasha Sarkisian. Reading and Writing Datasets

SOCY7709: Quantitative Data Management Instructor: Natasha Sarkisian. Reading and Writing Datasets SOCY7709: Quantitative Data Management Instructor: Natasha Sarkisian Reading and Writing Datasets Types of data files to read into Stata: Stata files Other statistical software files Spreadsheet data files

More information

An Introduction to Stata

An Introduction to Stata An Introduction to Stata Instructions Statistics 111 - Probability and Statistical Inference Jul 3, 2013 Lab Objective To become familiar with the software package Stata. Lab Procedures Stata gives us

More information

1. Make a bar graph in Excel. (1.5 points) Copy the following table into two columns under a blank worksheet in Excel.

1. Make a bar graph in Excel. (1.5 points) Copy the following table into two columns under a blank worksheet in Excel. STAT 243 Lab 3 Rachel Webb 25 points This lab should be done using Microsoft Excel available in all PSU computer labs. A hard copy of your output is to be handed in to during lecture on the due date posted

More information

Introduction to Stata

Introduction to Stata ntroduction to Stata Miguel Sarzosa Department of Economics University of Maryland Econ626: Empirical Microeconomics, 2012 1 What is Stata useful for? 2 The Famous Black Screen 3 Data nput 4 Commands Syntax

More information

STAT 503 Fall Introduction to SAS

STAT 503 Fall Introduction to SAS Getting Started Introduction to SAS 1) Download all of the files, sas programs (.sas) and data files (.dat) into one of your directories. I would suggest using your H: drive if you are using a computer

More information

Creating a data file and entering data

Creating a data file and entering data 4 Creating a data file and entering data There are a number of stages in the process of setting up a data file and analysing the data. The flow chart shown on the next page outlines the main steps that

More information

Checking whether the protocol was followed: gender and age 51

Checking whether the protocol was followed: gender and age 51 Checking whether the protocol was followed: gender and age 51 Session 4: Checking whether the protocol was followed: gender and age In the data cleaning workbook there are two worksheets which form the

More information