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

Size: px
Start display at page:

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

Transcription

1 Subject index Symbols %fmt * abbreviation character * comment indicator combining strings abbreviation character ,.a,.b,...,.z missing values , /* */ comment indicator // comment indicator /// continuation comment indicator ? abbreviation character ## interaction ~ abbreviation character , 2. prefix A abbreviating variable lists accessing results of commands...see saved results ado-files aggregate statistics, making dataset of all, abbreviation alphabetizing variables anycount(), egen function anymatch(), egen function append command appending datasets problems ASCII data, reading comma-separated fixed column multiple lines per observation ASCII data, reading, continued space-separated tab-separated saving comma-separated space-separated tab-separated assert command autocode() function automating data checking B backups, admonishments to perform remote storage of baseline group, selecting browse command...73 by-groups , , change from last value computations across computations within filling in missing values first observation within last observation within previous value , repeating commands across singletons within subsequent value by varlist: prefix , , , bysort varlist: prefix , , , bysort versus tsset byte data type

2 380 Subject index C categorical variables , by categorical variables, checking by continuous variables, checking checking cd centering variables cf command changing directories...10 changing shape of data.. see reshaping datasets chasing your own tail..see tail, chasing your own checking data, automating categorical by categorical variables categorical by continuous variables categorical variables continuous by continuous variables continuous variables double data entry cleaning data...see correcting data clear command clear option, with use command clock() function codebook command coding missing values collapse command collapsing datasets combining datasets appending crossing many-to-many merge merge options merging multiple one-to-many merge one-to-one merge combining datasets, continued problems appending problems merging update merge combining do-files commands, accessing results..see saved results repeating across by-groups repeating across variables repeating automatically repeating over anything repeating over numbers commas, reading data separated by saving data separated by commenting datasets variables comments compress command computations across observations , , variables , continuation comment, /// continuous variables by continuous variables, checking checking converting variables numeric to string string to numeric correcting data double data entry count(), egen function counting words counts, making dataset of creating dataset of estimation results creating variables cross command crossing datasets

3 Subject index 381.csv files, reading saving D D. prefix (difference) data checking... see checking data cleaning... see correcting data correcting... see correcting data entry , types data analysis project Data Editor dataset labels dataset of estimation results datasets, appending changing the shape of...see reshaping datasets collapsing.. see collapsing datasets commenting crossing describing downloading, for this book example datasets from Stata labeling large long... see long datasets many-to-many merge merge options merging multiple multilevel.. see multilevel datasets one-to-many merge one-to-one merge problems appending problems merging reading Stata reshaping.. see reshaping datasets saving Stata update merge wide... see wide datasets date variables date() function...138, date-and-time variables dates...see date variables day() function , decode command deleting observations variables delimited files, reading...see ASCII data, reading saving... see ASCII data, saving describe command... 39, describing datasets descriptive statistics, making dataset of destring command dichotomizing variables dictionary file with infile command with infix command diff(), egen function digits, controlling number displayed directories, changing display formats documenting do-files project dofc() function do-files, automating data checking checking combining commenting documenting introduction to master skeleton version command double data entry double data type dow() function...141, 150 downloading datasets for this book user-written programs

4 382 Subject index doy() function...141, 150 drop command dropping observations variables dummy variables duplicate observations, dropping...48, identifying... 48, duplicates command E e(), results stored in edit command editing data egen command , , encode command entering data ereturn list command errors in data, correcting... see correcting data finding...see checking data estimation results, making dataset of example datasets for this book from Stata exporting data, SAS XPORT files exporting raw data...see ASCII data, saving expressions, numeric string F F. prefix (forward) factor variables FAQs FDA (SAS XPORT) files, reading saving fdasave command fdause command filling in missing values, within by-groups findit command first observation within by-groups fixed-column data, reading multiple lines per observation float data type foreach command format command formatted raw data, reading...see ASCII data, reading saving... see ASCII data, saving frequencies, making dataset of frequently asked questions... see FAQs functions numeric , string fvset command G generate command global command global macros... see macros H header variables hh() function I i. prefix identifiable information if exp modifier SAS XPORT files importing raw data... see ASCII data, reading in range modifier indicator variables infile command with dictionary infix command with dictionary %infmt

5 Subject index 383 inlist() function inputting data interactively inputting raw data...see ASCII data, reading inrange() function insheet command int() function...120, 362 int data type interaction terms intermediate files, pruning irecode() function isid command J joinby command joining datasets K keep command keeping observations variables L L. prefix (lag) label define command dir command...92 language command , list command save command values command variable command labelbook command languages, multiple large datasets last observation within by-groups leading spaces, removing length() function list command listing observations value labels listserver for Stata ln() function loading saved data local command local macros...see macros.log files log files, introduction to log using command log10() function logical expressions and missing values long datasets, advantages compared with multilevel datasets compared with wide disadvantages reshaping to wide problems long data type lookfor command...82 looping across variables over anything over numbers lower() function ltrim() function M macros, expressions with functions with introducing local versus global manipulating quotes many-to-many merge master do-file mathematical functions max(), egen function , maximums, making dataset of mdy() function , mdyhms() function

6 384 Subject index mean(), egen function , means, making dataset of memory, setting , 288 merge command merge variable merging datasets one-to-many crossing many-to-many multiple one-to-many one-to-one options problems update min(), egen function , minimums, making dataset of missing values , in logical expressions missing() function , mm() function modifying variables month() function...141, multilevel datasets multiple datasets, merging multiple languages multiple lines per observation, reading mvdecode command mvencode command N N (number of observations) , n (observation number) note command...65, notes command , 82 83, numbers, repeating commands over numeric functions , variable to string numeric, continued variables numlabel command O observations, computations across , computing differences between deleting dropping dropping duplicates identifying duplicates keeping listing previous value randomly sampling running means across running proportions across running sums across subsequent value omitted group, selecting one-to-many merge one-to-one merge online resources order command , 164, ordering variables , out-of-range values, correcting... see correcting data finding...see checking data outfile command outputting raw data...see ASCII data, saving outsheet command P program drop command list command programming Stata programs, user-written proper() function...122

7 Subject index 385 Q quarter() function...141, 150 quotes to expand macros R r(), results stored in random-number functions , randomly sampling observations raw data, reading...see ASCII data, reading saving... see ASCII data, saving rchi2() function reading files common errors Stata datasets types of files reading raw data...see ASCII data, reading reading SAS XPORT files reading Stata datasets within SAS recode command recoding variables regression coefficients, making dataset of rename command renpfix command reordering variables , reorganizing datasets... see reshaping datasets repeating commands across by-groups across variables over anything over numbers replace command , reshape long command wide command reshaping datasets, long to wide problems reshaping datasets, continued wide to long problems return list command rnormal() function round() function , 362 routines, benefits of rowmax(), egen function rowmean(), egen function , 373 rowmin(), egen function rowmiss(), egen function...152, rownonmiss(), egen function , R-squared, computing change in runiform() function , running means, across observations running proportions, across observations running sums, across observations S SAS XPORT files, reading saving save command saved results creating dataset of saveold command...16 saving files raw data... see ASCII data, saving SAS XPORT files Stata datasets within SAS sd(), egen function set memory command , 288 more off command type command

8 386 Subject index setting memory , 288 Sheldon, J singletons within by-groups smcl files spaces, reading data separated by saving data separated by spreadsheets, transferring from Stata into Stata sqrt() function...120, ss() function SSC archive ssc command standard deviations, making dataset of Stat/Transfer...44 Stata datasets, reading saving Stata Journal Stata macros...see macros Stata programs, writing Stata syntax Stata Technical Bulletin Stata web site Stata, updating...3 Statalist statsby prefix command storage types str# data type string functions string variable to numeric string variables string() function subscripting observations substr() function sum() function summarize command sums, making dataset of syntax of Stata commands sysuse command T tabs, reading data separated by saving data separated by tabulate command tail, chasing your own...see chasing your own tail %tc format %tc format tc() pseudofunction %td format , td() pseudofunction tostring command total(), egen function transferring data from Stata into Stata translate command tsset command tsset versus bysort two-digit years U UCLA ATS web site update command... 3 update merges updating Stata...3 upper() function use command user-written programs, finding and downloading V validating data... see checking data value labels listing multiple languages problems variable labels lists variables, 1., 2. prefix alphabetizing categorical centering

9 Subject index 387 variables, continued checking... see checking data commenting computations across , converting numeric to string converting string to numeric correcting... see correcting data creating date date and time deleting dichotomizing display formats dropping dummy factor i. prefix indicator keeping labeling modifying recoding reordering , repeating commands across types of Variables Manager varlist version command , 288 word() function wordcount() function Y year() function...141, years, two digit W web resources web site for this book webuse command week() function , 150 wide datasets, advantages compared with long compared with multilevel datasets disadvantages reshaping to long problems

Ninth ARTNeT Capacity Building Workshop for Trade Research "Trade Flows and Trade Policy Analysis"

Ninth ARTNeT Capacity Building Workshop for Trade Research Trade Flows and Trade Policy Analysis Ninth ARTNeT Capacity Building Workshop for Trade Research "Trade Flows and Trade Policy Analysis" June 2013 Bangkok, Thailand Cosimo Beverelli and Rainer Lanz (World Trade Organization) 1 Introduction

More information

Data analysis using Stata , AMSE Master (M1), Spring semester

Data analysis using Stata , AMSE Master (M1), Spring semester Data analysis using Stata 2016-2017, AMSE Master (M1), Spring semester Notes Marc Sangnier Data analysis using Stata Virtually infinite number of tasks for data analysis. Almost infinite number of commands

More information

Empirical trade analysis

Empirical trade analysis Empirical trade analysis Introduction to Stata Cosimo Beverelli World Trade Organization Cosimo Beverelli Stata introduction Bangkok, 18-21 Dec 2017 1 / 23 Outline 1 Resources 2 How Stata looks like 3

More information

Workshop for empirical trade analysis. December 2015 Bangkok, Thailand

Workshop for empirical trade analysis. December 2015 Bangkok, Thailand Workshop for empirical trade analysis December 2015 Bangkok, Thailand Cosimo Beverelli (WTO) Rainer Lanz (WTO) Content a. Resources b. Stata windows c. Organization of the Bangkok_Dec_2015\Stata folder

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 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

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

Econ Stata Tutorial I: Reading, Organizing and Describing Data. Sanjaya DeSilva Econ 329 - Stata Tutorial I: Reading, Organizing and Describing Data Sanjaya DeSilva September 8, 2008 1 Basics When you open Stata, you will see four windows. 1. The Results window list all the commands

More information

Introduction to STATA

Introduction to STATA Introduction to STATA Duah Dwomoh, MPhil School of Public Health, University of Ghana, Accra July 2016 International Workshop on Impact Evaluation of Population, Health and Nutrition Programs Learning

More information

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

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

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

STATA TUTORIAL B. Rabin with modifications by T. Marsh

STATA TUTORIAL B. Rabin with modifications by T. Marsh STATA TUTORIAL B. Rabin with modifications by T. Marsh 5.2.05 (content also from http://www.ats.ucla.edu/stat/spss/faq/compare_packages.htm) Why choose Stata? Stata has a wide array of pre-defined statistical

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

Data Management Using Stata: A Practical Handbook

Data Management Using Stata: A Practical Handbook Data Management Using Stata: A Practical Handbook MICHAEL N. MITCHELL A Stata Press Publication StataCorp LP College Station, Texas Copyright c 2010 by StataCorp LP All rights reserved. First edition 2010

More information

Storage Types Display Format String Numeric (Dis)connect Cha

Storage Types Display Format String Numeric (Dis)connect Cha Storage Types Display Format String Numeric (Dis)connect Characters Jeehoon Han jhan4@nd.edu Fall 2017 Storage Types Storage types Numbers (digits of accuracy) Integers: byte(2), int(4), long(9) Floating

More information

Thanks to Petia Petrova and Vince Wiggins for their comments on this draft.

Thanks to Petia Petrova and Vince Wiggins for their comments on this draft. Intermediate Stata Christopher F Baum Faculty Micro Resource Center Academic Technology Services, Boston College August 2004 baum@bc.edu http://fmwww.bc.edu/gstat/docs/statainter.pdf Thanks to Petia Petrova

More information

Sustainability of Public Policy Lecture 1 Introduc6on STATA. Rossella Iraci Capuccinello

Sustainability of Public Policy Lecture 1 Introduc6on STATA. Rossella Iraci Capuccinello Sustainability of Public Policy Lecture 1 Introduc6on STATA Rossella Iraci Capuccinello Ge=ng started in STATA! Start STATA " Simply click on icon " Stata should look like this: BuDons/menu Review window

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

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

Intro to Stata. University of Virginia Library data.library.virginia.edu. September 16, 2014

Intro to Stata. University of Virginia Library data.library.virginia.edu. September 16, 2014 to 1/12 Intro to University of Virginia Library data.library.virginia.edu September 16, 2014 Getting to Know to 2/12 Strengths Available A full-featured statistical programming language For Windows, Mac

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

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

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

GETTING DATA INTO THE PROGRAM

GETTING DATA INTO THE PROGRAM GETTING DATA INTO THE PROGRAM 1. Have a Stata dta dataset. Go to File then Open. OR Type use pathname in the command line. 2. Using a SAS or SPSS dataset. Use Stat Transfer. (Note: do not become dependent

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

An Introduction to Stata Programming

An Introduction to Stata Programming An Introduction to Stata Programming Second Edition CHRISTOPHER F. BAUM Department of Economics and School of Social Work Boston College A Stata Press Publication StataCorp LP College Station, Texas Copyright

More information

A quick introduction to STATA

A quick introduction to STATA A quick introduction to STATA Data files and other resources for the course book Introduction to Econometrics by Stock and Watson is available on: http://wps.aw.com/aw_stock_ie_3/178/45691/11696965.cw/index.html

More information

Introduction to data analysis using STATA. Miguel Niño-Zarazúa World Institute for Development Economics Research United Nations University

Introduction to data analysis using STATA. Miguel Niño-Zarazúa World Institute for Development Economics Research United Nations University Introduction to data analysis using STATA Miguel Niño-Zarazúa World Institute for Development Economics Research United Nations University Background STATA is powerful command driven package for statistical

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

Preparing Data for Analysis in Stata

Preparing Data for Analysis in Stata Preparing Data for Analysis in Stata Before you can analyse your data, you need to get your data into an appropriate format, to enable Stata to work for you. To avoid rubbish results, you need to check

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

An Introduction to Stata Part II: Data Analysis

An Introduction to Stata Part II: Data Analysis An Introduction to Stata Part II: Data Analysis Kerry L. Papps 1. Overview Do-files Sorting a dataset Combining datasets Creating a dataset of means or medians etc. Weights Panel data capabilities Dummy

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

Use data on individual respondents from the first 17 waves of the British Household

Use data on individual respondents from the first 17 waves of the British Household Applications of Data Analysis (EC969) Simonetta Longhi and Alita Nandi (ISER) Contact: slonghi and anandi; @essex.ac.uk Week 1 Lecture 2: Data Management Use data on individual respondents from the first

More information

Sacha Kapoor - Masters Metrics

Sacha Kapoor - Masters Metrics Sacha Kapoor - Masters Metrics 091610 1 Address: Max Gluskin House, 150 St.George, Rm 329 Email: sacha.kapoor@utoronto.ca Web: http://individual.utoronto.ca/sacha$_$kapoor 1 Basics Here are some data resources

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

Base and Advance SAS

Base and Advance SAS Base and Advance SAS BASE SAS INTRODUCTION An Overview of the SAS System SAS Tasks Output produced by the SAS System SAS Tools (SAS Program - Data step and Proc step) A sample SAS program Exploring SAS

More information

Why should you become a Stata programmer?

Why should you become a Stata programmer? Why should you become a Stata programmer? Christopher F Baum Boston College and DIW Berlin January 2009 Christopher F Baum (BC & DIW Berlin) Why become a Stata programmer? 1 / 52 Introduction Should you

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

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

GETTING STARTED WITH STATA. Sébastien Fontenay ECON - IRES

GETTING STARTED WITH STATA. Sébastien Fontenay ECON - IRES GETTING STARTED WITH STATA Sébastien Fontenay ECON - IRES THE SOFTWARE Software developed in 1985 by StataCorp Functionalities Data management Statistical analysis Graphics Using Stata at UCL Computer

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

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

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

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

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

Saving Time with Prudent Data Management. Basic Principles To Save Time. Introducing Our Data. Yearly Directed Dyads (Multiple Panel Data)

Saving Time with Prudent Data Management. Basic Principles To Save Time. Introducing Our Data. Yearly Directed Dyads (Multiple Panel Data) Saving Time with Prudent Data Management Brandon Bartels & Kevin Sweeney Program In Statistics and Methodology Outline Some Basic Principles Introducing the Data (Dyad-Years) Common Tasks Sorting Generating

More information

Intermediate Stata. Jeremy Craig Green. 1 March /29/2011 1

Intermediate Stata. Jeremy Craig Green. 1 March /29/2011 1 Intermediate Stata Jeremy Craig Green 1 March 2011 3/29/2011 1 Advantages of Stata Ubiquitous in economics and political science Gaining popularity in health sciences Large library of add-on modules Version

More information

Subject index. Symbols. analyzing data.. see statistical analysis aorder command , 155 archiving...see backing up

Subject index. Symbols. analyzing data.. see statistical analysis aorder command , 155 archiving...see backing up Subject index Symbols If a term includes a symbol (e.g., N), the term is listed under the letter it begins with. For example, N is listed under N in the index; `tag is listed under T.!=...227 *!...113

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

Cross-Sectional Analysis

Cross-Sectional Analysis STATA 13 - SAMPLE SESSION Cross-Sectional Analysis Short Course Training Materials Designing Policy Relevant Research and Data Processing and Analysis with STATA 13 for Windows* 1st Edition Margaret Beaver

More information

Getting started with Stata 13

Getting started with Stata 13 Getting started with Stata 13 August 2015 - Version 3.1 Evelyn Ersanilli Table of Contents Opening Stata... 3 File types... 4 Log-files... 4 Do-files... 5 Ado-files... 7 Opening and saving data... 7 Stata

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

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

Contents Append Merge Further Exercises... 24

Contents Append Merge Further Exercises... 24 Contents 1 Essentials of the Stata Language 3 1.1 Introduction....................................... 3 1.2 Getting Help...................................... 3 1.2.1 Help.......................................

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

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

Week 1: Introduction to Stata

Week 1: Introduction to Stata Week 1: Introduction to Stata Marcelo Coca Perraillon University of Colorado Anschutz Medical Campus Health Services Research Methods I HSMP 7607 2017 c 2017 PERRAILLON ALL RIGHTS RESERVED 1 Outline Log

More information

Contents of SAS Programming Techniques

Contents of SAS Programming Techniques Contents of SAS Programming Techniques Chapter 1 About SAS 1.1 Introduction 1.1.1 SAS modules 1.1.2 SAS module classification 1.1.3 SAS features 1.1.4 Three levels of SAS techniques 1.1.5 Chapter goal

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 SAS HOW SAS WORKS READING RAW DATA INTO SAS

INTRODUCTION TO SAS HOW SAS WORKS READING RAW DATA INTO SAS TO SAS NEED FOR SAS WHO USES SAS WHAT IS SAS? OVERVIEW OF BASE SAS SOFTWARE DATA MANAGEMENT FACILITY STRUCTURE OF SAS DATASET SAS PROGRAM PROGRAMMING LANGUAGE ELEMENTS OF THE SAS LANGUAGE RULES FOR SAS

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

SAS CURRICULUM. BASE SAS Introduction

SAS CURRICULUM. BASE SAS Introduction SAS CURRICULUM BASE SAS Introduction Data Warehousing Concepts What is a Data Warehouse? What is a Data Mart? What is the difference between Relational Databases and the Data in Data Warehouse (OLTP versus

More information

A Brief Overview of Using STATA on the HPC Windows Terminal Server

A Brief Overview of Using STATA on the HPC Windows Terminal Server A Brief Overview of Using STATA on the HPC Windows Terminal Server Logging in to the HPC Windows Server: You must begin by logged in to the High Performance Computing Windows terminal server. : On Windows

More information

StatLab Workshops 2008

StatLab Workshops 2008 Stata Workshop Fall 2008 Adrian de la Garza and Nancy Hite Using STATA at the Statlab 1. The Different Windows in STATA Automatically displayed windows o Command Window: executes STATA commands; type in

More information

Introduction to Stata. Written by Yi-Chi Chen

Introduction to Stata. Written by Yi-Chi Chen Introduction to Stata Written by Yi-Chi Chen Center for Social Science Computation & Research 145 Savery Hall University of Washington Seattle, WA 98195 U.S.A (206)543-8110 September 2002 http://julius.csscr.washington.edu/pdf/stata.pdf

More information

SIDM3: Combining and restructuring datasets; creating summary data across repeated measures or across groups

SIDM3: Combining and restructuring datasets; creating summary data across repeated measures or across groups SIDM3: Combining and restructuring datasets; creating summary data across repeated measures or across groups You might find that your data is in a very different structure to that needed for analysis.

More information

How to use Pivot table macro

How to use Pivot table macro How to use Pivot table macro Managing Pivot Tables Table Filter and Charts for Confluence add-on allows you to summarize your table data and produce its aggregated view in the form of a pivot table. You

More information

Community Resource: Egenmore, by command, return lists, and system variables. Beksahn Jang Feb 22 nd, 2016 SOC561

Community Resource: Egenmore, by command, return lists, and system variables. Beksahn Jang Feb 22 nd, 2016 SOC561 Community Resource: Egenmore, by command, return lists, and system variables. Beksahn Jang Feb 22 nd, 2016 SOC561 Egenmore Egenmore is a package in Stata that extends the capabilities of the egen command.

More information

A Practical Introduction to Stata

A Practical Introduction to Stata A Practical Introduction to Stata Mark E. McGovern Harvard Center for Population and Development Studies Geary Institute and School of Economics, University College Dublin August 2012 Abstract This document

More information

From An Introduction to SAS University Edition. Full book available for purchase here.

From An Introduction to SAS University Edition. Full book available for purchase here. From An Introduction to SAS University Edition. Full book available for purchase here. Contents List of Programs... xi About This Book... xvii About the Author... xxi Acknowledgments... xxiii Part 1: Getting

More information

Contents Functions References Also see

Contents Functions References Also see Title stata.com Programming functions Contents autocode(x,n,x 0,x 1 ) byteorder() c(name) caller() chop(x, ɛ) clip(x,a,b) cond(x,a,b [,c ] ) e(name) e(sample) epsdouble() epsfloat() Contents Functions

More information

Subject index. bysort prefix command byte data type...96 bytecode

Subject index. bysort prefix command byte data type...96 bytecode Subject index A added-variable plot...204 ado-path...7, 250, 341 adopath command...7 adoupdate command...4, 34 Akaike information criterion...98 append command... 84, 110, 112, 187 args command... 253,

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

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

/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

Introduction to Stata

Introduction to Stata Introduction to Stata London School of Economics Michaelmas Term 2008 Alexander C. Lembcke email: a.c.lembcke@lse.ac.uk Homepage: http://personal.lse.ac.uk/lembcke This is an updated version of Michal

More information

Importing Geochemical Data

Importing Geochemical Data Importing Geochemical Data This Importing Geochemistry Data How-to Guide introduces you to working with Geochemistry data, including how to design a new survey, import data, merge and verify, extract and

More information

From datasets to resultssets in Stata

From datasets to resultssets in Stata From datasets to resultssets in Stata Roger Newson King s College London, London, UK roger.newson@kcl.ac.uk http://www.kcl-phs.org.uk/rogernewson/ Distributed at the 10th UK Stata Users Group Meeting on

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

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

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

Stata basics (Stata 13 or 14)

Stata basics (Stata 13 or 14) Stata basics (Stata 13 or 14) Ursina Kuhn and Oliver Lipps, FORS, Lausanne Version August 2016 Content 1. Getting started...2 1.1 Stata Interface...2 1.2 Getting help...2 1.3 Command Syntax of Stata...2

More information

The Stata Bible 2.0. Table of Contents. by Dawn L. Teele 1

The Stata Bible 2.0. Table of Contents. by Dawn L. Teele 1 The Stata Bible 2.0 by Dawn L. Teele 1 Welcome to what I hope is a very useful research resource for Stata programmers of all levels. The content of this tutorial has been developed while I was writing

More information

0.1 Stata Program 50 /********-*********-*********-*********-*********-*********-*********/ 31 /* Obtain Data - Populate Source Folder */

0.1 Stata Program 50 /********-*********-*********-*********-*********-*********-*********/ 31 /* Obtain Data - Populate Source Folder */ 0.1 Stata Program 1 capture log close master // suppress error and close any open logs 2 log using RDC3-master, name(master) replace text 3 // program: RDC3-master.do 4 // task: Demonstrate basic Stata

More information

5. Exercise 5 Produce publication-quality tables of summary statistics and regression results

5. Exercise 5 Produce publication-quality tables of summary statistics and regression results Center for Digital Scholarship Hesburgh Libraries University of Notre Dame James Ng james.ng@nd.edu Using Stata for Data Work Workshop Page: http://www3.nd.edu/~jng2/workshop Agenda 0. Preliminaries 1.

More information

Title. Description. Quick start. stata.com. label Manipulate labels

Title. Description. Quick start. stata.com. label Manipulate labels Title stata.com label Manipulate labels Description Quick start Menu Syntax Options Remarks and examples Stored results References Also see Description label data attaches a label (up to 80 characters)

More information

Excel Tools for Internal Auditing

Excel Tools for Internal Auditing Excel Tools for Internal Auditing BONNIE MAXFIELD SMITH COUNTY INTERNAL AUDITOR Data Process Obtain Data Data Import Format Text to Columns Concatenate Macros Compare /Analyze IF Function Subtotal Random

More information

BASICS BEFORE STARTING SAS DATAWAREHOSING Concepts What is ETL ETL Concepts What is OLAP SAS. What is SAS History of SAS Modules available SAS

BASICS BEFORE STARTING SAS DATAWAREHOSING Concepts What is ETL ETL Concepts What is OLAP SAS. What is SAS History of SAS Modules available SAS SAS COURSE CONTENT Course Duration - 40hrs BASICS BEFORE STARTING SAS DATAWAREHOSING Concepts What is ETL ETL Concepts What is OLAP SAS What is SAS History of SAS Modules available SAS GETTING STARTED

More information

Four steps in an effective workflow...

Four steps in an effective workflow... Four steps in an effective workflow... 1. Cleaning data Things to do: Verify your data are accurate Variables should be well named Variables should be properly labeled Ask yourself: Do the variables have

More information

Empirical Research: Getting Started with Stata

Empirical Research: Getting Started with Stata The Australian Economic Review, vol. 50, no. 2, pp. 236 50 For the Student Empirical Research: Getting Started with Stata Daniel Tiong* Abstract This article provides a guide to approaching empirical research

More information

Introduction to Programming in Stata

Introduction to Programming in Stata Introduction to in Stata Laron K. University of Missouri Goals Goals Replicability! Goals Replicability! Simplicity/efficiency Goals Replicability! Simplicity/efficiency Take a peek under the hood! Data

More information

Kim Mannemar Sønderskov. Stata. A practical introduction. Hans Reitzels Forlag

Kim Mannemar Sønderskov. Stata. A practical introduction. Hans Reitzels Forlag Stata Kim Mannemar Sønderskov Stata A practical introduction Hans Reitzels Forlag Stata: A practical introduction Edition 1, print run 1 The authors and Hans Reitzel Publishers, 2015 Publishing editor:

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

Data Management 2. 1 Introduction. 2 Do-files. 2.1 Ado-files and Do-files

Data Management 2. 1 Introduction. 2 Do-files. 2.1 Ado-files and Do-files University of California, Santa Cruz Department of Economics ECON 294A (Fall 2014)- Stata Lab Instructor: Manuel Barron 1 Data Management 2 1 Introduction Today we are going to introduce the use of do-files,

More information

Senturus Analytics Connector. User Guide Cognos to Power BI Senturus, Inc. Page 1

Senturus Analytics Connector. User Guide Cognos to Power BI Senturus, Inc. Page 1 Senturus Analytics Connector User Guide Cognos to Power BI 2019-2019 Senturus, Inc. Page 1 Overview This guide describes how the Senturus Analytics Connector is used from Power BI after it has been configured.

More information

set mem 10m we can also decide to have the more separation line on the screen or not when the software displays results: set more on set more off

set mem 10m we can also decide to have the more separation line on the screen or not when the software displays results: set more on set more off Setting up Stata We are going to allocate 10 megabites to the dataset. You do not want to allocate to much memory to the dataset because the more memory you allocate to the dataset, the less memory will

More information

STATA Hand Out 1. STATA's latest version is version 12. Most commands in this hand-out work on all versions of STATA.

STATA Hand Out 1. STATA's latest version is version 12. Most commands in this hand-out work on all versions of STATA. STATA Hand Out 1 STATA Background: STATA is a Data Analysis and Statistical Software developed by the company STATA-CORP in 1985. It is widely used by researchers across different fields. STATA is popular

More information

Results Based Financing for Health Impact Evaluation Workshop Tunis, Tunisia October Stata 2. Willa Friedman

Results Based Financing for Health Impact Evaluation Workshop Tunis, Tunisia October Stata 2. Willa Friedman Results Based Financing for Health Impact Evaluation Workshop Tunis, Tunisia October 2010 Stata 2 Willa Friedman Outline of Presentation Importing data from other sources IDs Merging and Appending multiple

More information

EXAMPLE 10: PART I OFFICIAL GEOGRAPHICAL IDENTIFIERS IN THE UNDERSTANDING SOCIETY PART II LINKING MACRO-LEVEL DATA AT THE LSOA LEVEL

EXAMPLE 10: PART I OFFICIAL GEOGRAPHICAL IDENTIFIERS IN THE UNDERSTANDING SOCIETY PART II LINKING MACRO-LEVEL DATA AT THE LSOA LEVEL EXAMPLE 10: PART I OFFICIAL GEOGRAPHICAL IDENTIFIERS IN THE UNDERSTANDING SOCIETY PART II LINKING MACRO-LEVEL DATA AT THE LSOA LEVEL DESCRIPTION: The objective of this example is to illustrate how external

More information