An Introduction to Stata Exercise 1

Size: px
Start display at page:

Download "An Introduction to Stata Exercise 1"

Transcription

1 An Introduction to Stata Exercise 1 Anna Folke Larsen, September Table of Contents 1 Introduction Initial options Reading a data set from a spreadsheet Descriptive statistics Save and load data Generate new variables... Error! Bookmark not defined. 1 Introduction Stata is a very useful statistical software package for conducting a wide range of econometric estimations. One major advantage of Stata is the possibility for users to write and share user-written procedures which make econometric estimations very easy. These notes work as an introduction to Stata and as a complement to the do-file E1_ex_ante.do. We will use data from a small survey which we conduct in the beginning of the class. Stata differs from many other programs that you work with because it is using and saving several files in different file formats. For instance, when you are working in word you usually work in a word file (maybe with the.docx file format) and you may even think of the file and the program as the same thing. However, in Stata it is important to keep track of the different types of files, what they are used for and how and where we save them. If you are new to Stata it is a good idea to have one folder where you keep all the files associated with Stata. Create a folder where you want to keep your Stata stuff. This will be your working directory. Within that folder, create three subfolders: data, dofiles and logs. You will eventually have four different types of files: The Excel file with the survey data (survey_class1_2.xls) The Stata do-file (Dofile_exercise1.do) The Stata data-file (mysurvey.dta) The log file (exercise1.log / exercise1.txt) 2 1 Based on an Introduction to Stata by Daniel le Maire, October 2012

2 The.xls file is the file with your raw data; the data you typed into the spreadsheet. We are not going to make changes to this data from Stata. In general, it is nice always to keep a copy of your raw data which you never work with, because if you make a mistake and delete or change something, you would like to be able to recover your raw data. The.do file is where you are doing the actual programming, that is, telling Stata what to do with the data. The nice thing about writing a program instead of clicking around in Stata is that we are able to stay organized about the order of the things we do and we can easily replicate it. You will be working with the do-file within the do-file editor as described below and you save the do-file within the do-file editor. This is very much like working with any other text file, you are just writing things in a different language. The.dta file is the data file in Stata format. Once we make changes to the data we imported from Excel, e.g. creating new variables or changing existing ones, we may want to save it to be able to use the altered data later on. We like to do that within the do-file with a save command (more about that below). If we click the save icon or use CTRL+S when we are in the output window, Stata will save the data (or ask if you want to overwrite the existing data if you already saved the data in.dta format). The reason why we prefer not to save the data from the output window is because we want to keep track of what we have done to the data before we save it. That is exactly what we can do within the do-file. If you make changes to the data in the do-file and do not save the data before closing down your Stata session, Stata will ask you if you want to save the changes you made to the data. If you would want to save it, you should have done it within the dofile. Otherwise, just close without saving. The.log (.txt) file is a file that contains everything you see in the output window. It is just plain text so you can open it with notepad or another text program and see the work you did, both the code from the do-file and the output Stata gives. This is useful for reviewing what you have done, and can also be useful for sharing your results with others. The log file is created within the do-file by opening a log (see below) and it is also saved within the do-file by closing the log in the very bottom of the do-file as explained below. Then you can find it as a text file in your working directory. Once you are a bit more experienced you may want to organize yourself differently. For now, it is convenient to stay organized this way. Within the Stata do-file we will be writing programming language. You can think about this as learning a new language. Be aware that as opposed to other language classes, spelling mistakes and commas in the right places are crucial for Stata to understand you! Everytime we want Stata to do something, we use a Stata command. Every command has its own syntax and most commands have different options you may want to use. These notes will not contain an exhaustive list of options which are possible to use in connection with each Stata command. There are two reasons for this. First of all, Stata s help is very user-friendly. Second of all, most of Stata s commands have the same following structure: 2 For some reason, you should use the file extension.log when you name a log file in Stata, and it will be saved in a.txt format.

3 command [varlist] [if exp] [in range] [weight] [, options] where the terms in brackets are not always required: varlist specifies the variables to be used by the specific command. If no variables are specified all variables will be used. if exp (expressions) are used to select the appropriate observations to be used by the command (if any). in range: Specifies the range of observations to be used (if any). weight: Specifies the weighting scheme to be used (if any). options are specific to the command (if any). Rather than listing all options etc. the reader is encouraged to check Stata s help. There are two ways of accessing Stata s help. From the menu one can select Help. Alternatively, one can use the command line to write help and enter. If one needs help for a specific command, say, summarize then write help summarize. Actually, when you are new to Stata, look at the help file every time you use a new command. That helps you get acquainted not only with the new command, but also with the structure of the help entries. This enables you to quickly learn about new commands. 2 Initial options It is possible to execute one command at a time by using the command line and this can sometimes be useful when developing the code. However, we can also write a program where we can execute all or part of the code. In Stata the program file is called a do-file. When opening Stata you can find the do-file editor under the icon or by selecting the Window menu and subsequently Do-file Editor or just use the short-cut key CTRL+8. You can also write doedit ( or doe) in the command line. Within the do-file editor you can run commands in different ways: You can click the Execute (do) icon, or you can use the short-cut CTRL+D (on mac: +SHIFT+D). If you want to run part of the code you can highlight it and click Execute or press CTRL+D. This is very useful when developing code. It is a good idea to start a do-file with your name and date and maybe also write down the purpose of the do-file. This becomes convenient when you have many do-files or share your do-files with others. It is always a good idea to clear the memory when we start a new do-file. clear all The main window of Stata is the Results window. Here you can see both the commands from the do-file and the output. We can save these results in a log file which is often times useful. Stata can only have one log file open at the same time. Therefore, we cannot create a new log without closing an existing log. Hence, it is a good idea to begin the do-file by closing any open log file. We do this by writing capture log close Next, we create the log file. We need to specify in which folder we want the log file saved. You can name the log file whatever you prefer, but you should use the extension.log. Finally, we need to tell Stata that every time we run the program the log file should be replaced.

4 log using "C:\Stata\logs\exercise1.log", replace However, if we are going to use a special folder for data and log files it is useful to specify such folder in order to avoid writing the whole path every time we want to read or write a file from this folder. We create a directory by writing cd (shorthand for change directory) and the particular folder. If you have difficulties finding the path for the folder, you can use click and play : File Change working directory Browse to find the folder where your data is stored and where you want to store the log file, click on it and click OK. Now Stata has changed the working directory. If you want to be able to do it again without clicking around, you can find the command in the command window. If you click it, you will get the command in the command line and from here you can copy it and paste it into your do-file editor. cd "C:\Stata\" Then, we can write log using "logs\exercise1.log", replace When using a log file we should end the do-file by closing the log, that is log close When running a Stata do-file or any Stata command the Results window will pause until you press a key in order to let you follow the stream of output as Stata performs the estimations. To avoid this you can write set more off In some cases Stata allows us to use a shorter notation. Therefore, let us repeat all the commands but in the short form. clear all cap log c cd "C:\Stata\" log using "logs\exercise1.log", replace set more off And then at the end of the do-file: log c By the way, the do-file editor uses colors to make things easier to read. commands are in dark blue *comments are in green "strings are in red" A final note before we get really started is on how Stata reads your code. Each line is considered a command. Sometimes you want to add comments in your own language to remember what the code is doing or to structure your do-file. This is actually a really good idea, because you often return to old code and it helps you understand what you are doing and why. There are different ways to make comments. You can either start the line with an asterix, then Stata will not read the line. Or you can write slash asterix /* then Stata will not execute what you are writing before you end the comment with asterix slash */. You can

5 also use double slash // to start a comment on the same line as a command, e.g. to describe the command. Each line is a command but sometimes the commands get really long and you want to split it into several lines for readability. Triple slash /// at the end of a line tells Stata to continue the command on the following line. 3 Reading a data set from a spreadsheet In order to import data to Stata from a spreadsheet, we first need to make sure that the spreadsheet file is saved in the.xls format. Next, we can either import it by click and play or using the do-editor. Using click and play, choose: File Import Excel spreadsheet. This opens a window where you browse to find the.xls file you want to import. Tick the option: Import first row as variable names. Then click OK. Now, we made Stata do what we wanted, but we would like to be able to replicate it. Luckily, Stata provides the command in the command window and we can copy and paste it into the do-file editor: import excel "data\firstsurvey.xls", sheet("sheet1") firstrow Having the code in the do-file editor allows us to simply execute the do-file to import the data from excel instead of doing the click and play over again. This is convenient if we want to import the data again. If we want import another data set from excel we can just change the file name in the code. To see the values in the data set we can from the toolbox just above the Results window select either the Data Editor or the Data Browser. Alternatively, we can write either edit or browse in the Command Line Window. It is only in very rare occasions that we wish to change the data without writing this as code and we certainly don t want to do it by mistake. So the Data Browser is the most attractive option. Furthermore, often it is only of interest to see a subset of variables and if we want to see for example the person id (pid), the name (name) and the age (age) we simply write in the command line browse pid name age A nice way to get a quick overview of the data is to simply write describe This yields an overview of the number of observations and variables and the format of the different variables. 4 Descriptive statistics We can display simple descriptive statistics with the use of the summarize function. If we want to see descriptive statistics for all of our variables we should just write summarize and as with some of the functions we just need to write su to invoke the summarize function. We can also specify a subset of variables for which summary statistics should be calculated su age

6 If we want to summarize several variables it is sometimes nice to use a variable list. A list can simply be the names of the variables with a space in between as above, but we can also do the following su age-height Now we summarize all variables between age and height. We can also use the wildcard * which can be used in the beginning, middle or end of a variable name. su h* The summarize command is not well suited for all kinds of variables. We some from using the describe command that some variables are string variables: the storage type is str# meaning that stata understands the variable as text (with max # letters). For instance, it doesn t really make sense to calculate the mean and standard deviation of the name. Instead we can use the codebook command codebook name For the categorical variables such as house and location summarize is also not the best way to look at them. Rather we would want to tabulate the different options people chose. We can do that easily tabulate house tabulate location If we wanted to that write that shorter, we could use the tab instead of tabulate. When we want to tabulate several variables we can use the tab1 command: tab1 house location If we write two variables in the tab command, Stata will make a cross-tabulation. This would be useful if we were interested in knowing what type of housing is common in different parts of Copenhagen. tab house location If we do not have many observations we can also simply just list a variable. This corresponds to looking at the variable in the data browser (using the command browse or shorthand br), but the virtue of the list command is that we get the listed data into the log file. That can be nice if we want to have one single log file with all the important information inside. list house When we look at the variables, we currently need to look at the questionnaire to remember what the variables are. Instead, we can also add labels in Stata so the data is more self-explanatory. First, we assign the label Type of housing to the variable house label var house "Type of housing" Then we may also want to assign a value label to the values of the categorical variable, such that we can remember which number refers to which type of housing. First we have to define the value label label define HOUSE_VAL 1 "Apartment" 2 "Dorm" 3 "House" 4 "Other"

7 I use capital letters for the name of the value label (HOUSE_VAL) in order not to mix it up with variable names where I usually use lower case letters. Next we need to assign the value label to the variable house. label values house HOUSE_VAL When you tabulate house or look at the variable in the data editor (browse) you now see the labels. 5 Save and load data We can save the data set in a Stata format by writing save mysurvey.dta, replace As Stata data sets have the extension.dta this will create a Stata data set. It is saved in the folder we chose in the beginning using the cd command. In order to save it in a different folder, we need to specify the path within a string, e.g. save C:\Different folder\mysurvey.dta, replace If there are spaces in the path we have to use the quotation marks "" to tell Stata that it is a string. But even though there are no spaces it is nice to use them because they change the string into red which makes the code easier to read. 6 Keeping and dropping It is always possible to throw away observations or variables by using keep or drop. Now that we just saved the data set we can have fun throwing away observations or variables. Here we drop the two variables roomsize and location (recall, these are columns in the data). drop roomsize location If we want to drop many variables, maybe it is easier just to write the few variables that we are interested in keeping: keep pid age wc Maybe we also want to drop some observations (rows in the data). Say, we are not interested in informants who do not have their own toilet drop if wc==2 Note, that after the if statement we use two equality signs. Only using one equality sign is a typical mistake. Here is a small useful scheme for if statements:

8 After if (logical operators) Combining several if statements Equal to == And & Not equal to!= Or Var larger than # Var># house>2 Var smaller than # Var<# house<2 Var larger than or equal to # Var>=# House>=2 Var smaller than or equal to # Var<=# House<=2 Example of how to combine two if statements: drop if wc==2&house!=1 When using & in this case we are only dropping observations who share a toilet and do not live in an apartment. If we did it in two statements we would also drop those who share a toilet in an apartment: drop if wc==2 drop if house!=1 If statements can be tricky, so always check be browsing or tabulating whether you dropped or kept the observations you wanted. Now that we have dropped most variables and observations, let s read the data into Stata again. As we can only have one data set in memory we will clear the memory before reading the data clear all By using the Data Browser you can verify that there no longer is data in memory. If we want to read a stata dataset such as mysurvey.dta, we simply write use mysurvey.dta, clear If we saved the file in a different folder, we should of course specify the path. When we use the clear option we did not have to use the clear all statement before reading the data.

9 There is also a click and play way to open a new data set. If you go to the output window and then click File Open you can browse to find the.dta file you want to open. If you have not cleared the work space first, and you have made changes to the data set which is open Stata will warn you that you are about to lose unsaved data. Saying yes, corresponds to the clear option in the use command.

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

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

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

tabulate varname [aw=weightvar]

tabulate varname [aw=weightvar] 1 Commands Introduced In this chapter you will learn these Stata basics: How to obtain information about a dataset How to obtain information about variables How to write and save a Do-file (a file that

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

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

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

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

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

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

Chapter 2 The SAS Environment

Chapter 2 The SAS Environment Chapter 2 The SAS Environment Abstract In this chapter, we begin to become familiar with the basic SAS working environment. We introduce the basic 3-screen layout, how to navigate the SAS Explorer window,

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 - 01 Lecture - 04 Downloading and installing Python

Week - 01 Lecture - 04 Downloading and installing Python Programming, Data Structures and Algorithms in Python Prof. Madhavan Mukund Department of Computer Science and Engineering Indian Institute of Technology, Madras Week - 01 Lecture - 04 Downloading and

More information

Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 2 Working with data in Excel and exporting to JMP Introduction

Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 2 Working with data in Excel and exporting to JMP Introduction Biology 345: Biometry Fall 2005 SONOMA STATE UNIVERSITY Lab Exercise 2 Working with data in Excel and exporting to JMP Introduction In this exercise, we will learn how to reorganize and reformat a data

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

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

SPSS 11.5 for Windows Assignment 2

SPSS 11.5 for Windows Assignment 2 1 SPSS 11.5 for Windows Assignment 2 Material covered: Generating frequency distributions and descriptive statistics, converting raw scores to standard scores, creating variables using the Compute option,

More information

ADOBE DREAMWEAVER CS4 BASICS

ADOBE DREAMWEAVER CS4 BASICS ADOBE DREAMWEAVER CS4 BASICS Dreamweaver CS4 2 This tutorial focuses on the basic steps involved in creating an attractive, functional website. In using this tutorial you will learn to design a site layout,

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel in Excel Although calculations are one of the main uses for spreadsheets, Excel can do most of the hard work for you by using a formula. When you enter a formula in to a spreadsheet

More information

What is Stata? A programming language to do sta;s;cs Strongly influenced by economists Open source, sort of. An acceptable way to manage data

What is Stata? A programming language to do sta;s;cs Strongly influenced by economists Open source, sort of. An acceptable way to manage data Introduc)on to Stata Training Workshop on the Commitment to Equity Methodology CEQ Ins;tute, Asian Development Bank, and The Ministry of Finance Dili May-June, 2017 What is Stata? A programming language

More information

Introduction to SPSS on the Macintosh. Scott Patterson,Ph.D. Broadcast and Electronic Communication Arts San Francisco State University.

Introduction to SPSS on the Macintosh. Scott Patterson,Ph.D. Broadcast and Electronic Communication Arts San Francisco State University. Introduction to SPSS on the Macintosh. Scott Patterson,Ph.D. Broadcast and Electronic Communication Arts San Francisco State University Spring 2000 This is a brief guide to using SPSS in the Macintosh

More information

Depending on the computer you find yourself in front of, here s what you ll need to do to open SPSS.

Depending on the computer you find yourself in front of, here s what you ll need to do to open SPSS. 1 SPSS 11.5 for Windows Introductory Assignment Material covered: Opening an existing SPSS data file, creating new data files, generating frequency distributions and descriptive statistics, obtaining printouts

More information

Introduction to Stata

Introduction to Stata Introduction to Stata Introduction In introductory biostatistics courses, you will use the Stata software to apply statistical concepts and practice analyses. Most of the commands you will need are available

More information

TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL

TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL We have spent the first part of the course learning Excel: importing files, cleaning, sorting, filtering, pivot tables and exporting

More information

Module 1: Introduction RStudio

Module 1: Introduction RStudio Module 1: Introduction RStudio Contents Page(s) Installing R and RStudio Software for Social Network Analysis 1-2 Introduction to R Language/ Syntax 3 Welcome to RStudio 4-14 A. The 4 Panes 5 B. Calculator

More information

A Document Created By Lisa Diner Table of Contents Western Quebec School Board October, 2007

A Document Created By Lisa Diner Table of Contents Western Quebec School Board October, 2007 Table of Contents A Document Created By Lisa Diner Western Quebec School Board October, 2007 Table of Contents Some Basics... 3 Login Instructions... 4 To change your password... 6 Options As You Login...

More information

Outlook Web Access. In the next step, enter your address and password to gain access to your Outlook Web Access account.

Outlook Web Access. In the next step, enter your  address and password to gain access to your Outlook Web Access account. Outlook Web Access To access your mail, open Internet Explorer and type in the address http://www.scs.sk.ca/exchange as seen below. (Other browsers will work but there is some loss of functionality) In

More information

TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL

TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL We have spent the first part of the course learning Excel: importing files, cleaning, sorting, filtering, pivot tables and exporting

More information

CROMWELLSTUDIOS. Content Management System Instruction Manual V1. Content Management System. V1

CROMWELLSTUDIOS. Content Management System Instruction Manual V1.   Content Management System. V1 Content Management System Instruction Manual V1 www.cromwellstudios.co.uk Cromwell Studios Web Services Content Management System Manual Part 1 Content Management is the system by which you can change

More information

GRETL FOR TODDLERS!! CONTENTS. 1. Access to the econometric software A new data set: An existent data set: 3

GRETL FOR TODDLERS!! CONTENTS. 1. Access to the econometric software A new data set: An existent data set: 3 GRETL FOR TODDLERS!! JAVIER FERNÁNDEZ-MACHO CONTENTS 1. Access to the econometric software 3 2. Loading and saving data: the File menu 3 2.1. A new data set: 3 2.2. An existent data set: 3 2.3. Importing

More information

Handling Your Data in SPSS. Columns, and Labels, and Values... Oh My! The Structure of SPSS. You should think about SPSS as having three major parts.

Handling Your Data in SPSS. Columns, and Labels, and Values... Oh My! The Structure of SPSS. You should think about SPSS as having three major parts. Handling Your Data in SPSS Columns, and Labels, and Values... Oh My! You might think that simple intuition will guide you to a useful organization of your data. If you follow that path, you might find

More information

EXCEL BASICS: MICROSOFT OFFICE 2010

EXCEL BASICS: MICROSOFT OFFICE 2010 EXCEL BASICS: MICROSOFT OFFICE 2010 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

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

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

EXCEL BASICS: MICROSOFT OFFICE 2007

EXCEL BASICS: MICROSOFT OFFICE 2007 EXCEL BASICS: MICROSOFT OFFICE 2007 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

More information

Reference Guide. Adding a Generic File Store - Importing From a Local or Network ShipWorks Page 1 of 21

Reference Guide. Adding a Generic File Store - Importing From a Local or Network ShipWorks Page 1 of 21 Reference Guide Adding a Generic File Store - Importing From a Local or Network Folder Page 1 of 21 Adding a Generic File Store TABLE OF CONTENTS Background First Things First The Process Creating 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

Computer lab 2 Course: Introduction to R for Biologists

Computer lab 2 Course: Introduction to R for Biologists Computer lab 2 Course: Introduction to R for Biologists April 23, 2012 1 Scripting As you have seen, you often want to run a sequence of commands several times, perhaps with small changes. An efficient

More information

CHAPTER 1 COPYRIGHTED MATERIAL. Finding Your Way in the Inventor Interface

CHAPTER 1 COPYRIGHTED MATERIAL. Finding Your Way in the Inventor Interface CHAPTER 1 Finding Your Way in the Inventor Interface COPYRIGHTED MATERIAL Understanding Inventor s interface behavior Opening existing files Creating new files Modifying the look and feel of Inventor Managing

More information

Using Mail Merge in Microsoft Word 2003

Using Mail Merge in Microsoft Word 2003 Using Mail Merge in Microsoft Word 2003 Mail Merge Created: 12 April 2005 Note: You should be competent in Microsoft Word before you attempt this Tutorial. Open Microsoft Word 2003 Beginning the Merge

More information

Easy Windows Working with Disks, Folders, - and Files

Easy Windows Working with Disks, Folders, - and Files Easy Windows 98-3 - Working with Disks, Folders, - and Files Page 1 of 11 Easy Windows 98-3 - Working with Disks, Folders, - and Files Task 1: Opening Folders Folders contain files, programs, or other

More information

COMPUTER FOR BEGINNERS

COMPUTER FOR BEGINNERS COMPUTER FOR BEGINNERS INTRODUCTION Class Objective: This class will familiarize you with using computers. By the end of the session you will be familiar with: Starting programs Quitting programs Saving

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

PIXEL SPREADSHEET USER MANUAL April 2011

PIXEL SPREADSHEET USER MANUAL April 2011 PIXEL SPREADSHEET USER MANUAL April 2011 Greetings! Thank you for using Pixel Spreadsheet. In order to get started using Pixel Spreadsheet, there are a few things you must know: RUNNING PROGRAM FOR MAC

More information

Introduction to Excel

Introduction to Excel Introduction to Excel Written by Jon Agnone Center for Social Science Computation & Research 145 Savery Hall University of Washington Seattle WA 98195 U.S.A. (206)543-8110 November 2004 http://julius.csscr.washington.edu/pdf/excel.pdf

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

Getting Started with SSI Web v3 A 45-Minute Hands-On Tour

Getting Started with SSI Web v3 A 45-Minute Hands-On Tour Getting Started with SSI Web v3 A 45-Minute Hands-On Tour What is SSI Web? SSI Web is a software system for creating Web-based questionnaires. These questionnaires can include standard survey questions,

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

Arduino IDE Friday, 26 October 2018

Arduino IDE Friday, 26 October 2018 Arduino IDE Friday, 26 October 2018 12:38 PM Looking Under The Hood Of The Arduino IDE FIND THE ARDUINO IDE DOWNLOAD First, jump on the internet with your favorite browser, and navigate to www.arduino.cc.

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

Using Mail Merge in Microsoft Word XP/2002

Using Mail Merge in Microsoft Word XP/2002 Using Mail Merge in Microsoft Word XP/2002 Open Microsoft Word XP/2002 Beginning the Merge You may start Mail Merge with a blank document or one that you have already created. We will use a blank document

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

Copyright 2018 MakeUseOf. All Rights Reserved.

Copyright 2018 MakeUseOf. All Rights Reserved. 15 Power User Tips for Tabs in Firefox 57 Quantum Written by Lori Kaufman Published March 2018. Read the original article here: https://www.makeuseof.com/tag/firefox-tabs-tips/ This ebook is the intellectual

More information

Semester 2, 2018: Lab 1

Semester 2, 2018: Lab 1 Semester 2, 2018: Lab 1 S2 2018 Lab 1 This lab has two parts. Part A is intended to help you familiarise yourself with the computing environment found on the CSIT lab computers which you will be using

More information

SISG/SISMID Module 3

SISG/SISMID Module 3 SISG/SISMID Module 3 Introduction to R Ken Rice Tim Thornton University of Washington Seattle, July 2018 Introduction: Course Aims This is a first course in R. We aim to cover; Reading in, summarizing

More information

Ticket Mail Merge Instructions for MS Word 2007 and 2010

Ticket Mail Merge Instructions for MS Word 2007 and 2010 Before starting the mail merge process make sure both the ticket template merge document and bidder number excel file are saved to your computer. These files are located on the volunteer resource site

More information

1 Introduction to Using Excel Spreadsheets

1 Introduction to Using Excel Spreadsheets Survey of Math: Excel Spreadsheet Guide (for Excel 2007) Page 1 of 6 1 Introduction to Using Excel Spreadsheets This section of the guide is based on the file (a faux grade sheet created for messing with)

More information

Using Microsoft Word. Text Editing

Using Microsoft Word. Text Editing Using Microsoft Word A word processor is all about working with large amounts of text, so learning the basics of text editing is essential to being able to make the most of the program. The first thing

More information

Elizabeth Garrett Anderson. FAQs. The Anderson Team Journey. EGA FAQ s

Elizabeth Garrett Anderson. FAQs. The Anderson Team Journey.   EGA FAQ s Elizabeth Garrett Anderson FAQs The Anderson Team Journey www.leadershipacademy.nhs.uk 1 Contents Entering / editing your team name... 3 Adding team members one at a time... 4 Adding non-team members...

More information

Using Microsoft Excel

Using Microsoft Excel About Excel Using Microsoft Excel What is a Spreadsheet? Microsoft Excel is a program that s used for creating spreadsheets. So what is a spreadsheet? Before personal computers were common, spreadsheet

More information

How to Look Up People Using LDAP in Eudora

How to Look Up People Using LDAP in Eudora How to Look Up People Using LDAP in Eudora Introduction Eudora lets you look up individuals on the Internet and within your company using several Directory Services protocols. Each of these protocols is

More information

GUARDTOOL IMPORTER ADDENDUM

GUARDTOOL IMPORTER ADDENDUM EPI Suite 6.x GUARDTOOL IMPORTER ADDENDUM 1. Importing text files (*.txt,.csv) and Excel files (.xls) with the Jet Engine If the files that you want to import are in the list of the Jet Engine drivers

More information

Project Collaboration

Project Collaboration Bonus Chapter 8 Project Collaboration It s quite ironic that the last bonus chapter of this book contains information that many of you will need to get your first Autodesk Revit Architecture project off

More information

Maximizing Statistical Interactions Part II: Database Issues Provided by: The Biostatistics Collaboration Center (BCC) at Northwestern University

Maximizing Statistical Interactions Part II: Database Issues Provided by: The Biostatistics Collaboration Center (BCC) at Northwestern University Maximizing Statistical Interactions Part II: Database Issues Provided by: The Biostatistics Collaboration Center (BCC) at Northwestern University While your data tables or spreadsheets may look good to

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

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

Introduction to Unix

Introduction to Unix Introduction to Unix Part 1: Navigating directories First we download the directory called "Fisher" from Carmen. This directory contains a sample from the Fisher corpus. The Fisher corpus is a collection

More information

Intermediate Excel 2003

Intermediate Excel 2003 Intermediate Excel 2003 Introduction The aim of this document is to introduce some techniques for manipulating data within Excel, including sorting, filtering and how to customise the charts you create.

More information

Lesson 4: Introduction to the Excel Spreadsheet 121

Lesson 4: Introduction to the Excel Spreadsheet 121 Lesson 4: Introduction to the Excel Spreadsheet 121 In the Window options section, put a check mark in the box next to Formulas, and click OK This will display all the formulas in your spreadsheet. Excel

More information

17 - VARIABLES... 1 DOCUMENT AND CODE VARIABLES IN MAXQDA Document Variables Code Variables... 1

17 - VARIABLES... 1 DOCUMENT AND CODE VARIABLES IN MAXQDA Document Variables Code Variables... 1 17 - Variables Contents 17 - VARIABLES... 1 DOCUMENT AND CODE VARIABLES IN MAXQDA... 1 Document Variables... 1 Code Variables... 1 The List of document variables and the List of code variables... 1 Managing

More information

HTML/CSS Lesson Plans

HTML/CSS Lesson Plans HTML/CSS Lesson Plans Course Outline 8 lessons x 1 hour Class size: 15-25 students Age: 10-12 years Requirements Computer for each student (or pair) and a classroom projector Pencil and paper Internet

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

IBM Emptoris User Guide

IBM Emptoris User Guide This document includes instructions to help you with most actions you need to do in Emptoris. If you have any questions, please contact your IBM Representative. For more Information and Help material,

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

CS Multimedia and Communications REMEMBER TO BRING YOUR MEMORY STICK TO EVERY LAB!

CS Multimedia and Communications REMEMBER TO BRING YOUR MEMORY STICK TO EVERY LAB! CS 1033 Multimedia and Communications REMEMBER TO BRING YOUR MEMORY STICK TO EVERY LAB! Lab 06: Introduction to KompoZer (Website Design - Part 3 of 3) Lab 6 Tutorial 1 In this lab we are going to learn

More information

Creating a Do File in Stata

Creating a Do File in Stata Updated July 2018 Creating a Do File in Stata This set of notes describes how to create a do file within the computer program Stata. It assumes that you have set Stata up on your computer (see the Getting

More information

Blackboard for Faculty: Grade Center (631) In this document:

Blackboard for Faculty: Grade Center (631) In this document: 1 Blackboard for Faculty: Grade Center (631) 632-2777 Teaching, Learning + Technology Stony Brook University In this document: blackboard@stonybrook.edu http://it.stonybrook.edu 1. What is the Grade Center?..

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

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

Automatic Coding by Section in NVivo

Automatic Coding by Section in NVivo What is Section Coding? Automatic Coding by Section in NVivo You can use heading styles (or more simply headings ) applied to paragraphs in your documents to automatically code the text in paragraphs following

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

1 Installation (briefly)

1 Installation (briefly) Jumpstart Linux Bo Waggoner Updated: 2014-09-15 Abstract A basic, rapid tutorial on Linux and its command line for the absolute beginner. Prerequisites: a computer on which to install, a DVD and/or USB

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

3. Data Tables & Data Management

3. Data Tables & Data Management 3. Data Tables & Data Management In this lab, we will learn how to create and manage data tables for analysis. We work with a very simple example, so it is easy to see what the code does. In your own projects

More information

CTU Database revised June 2001

CTU Database revised June 2001 CTU Database revised June 2001 The UH Cancer Center CTU Database is a web based application. You should be able to use this application from any web browser, though it was designed for IE8, it has been

More information

Time & Technology Training Strategies & Secrets - Effective Management for Associated General Contractors of America

Time & Technology Training Strategies & Secrets - Effective  Management for Associated General Contractors of America Time & Technology Training Strategies & Secrets - Effective e-mail Management for Associated General Contractors of America Turner Time Management, LLC. www.turnertimemanagement.com Steve Turner 855-778-8463

More information

R EIN V E N TIN G B U S I N E S S I L E M A. MARK5 Basic guide. - All rights reserved

R EIN V E N TIN G B U S I N E S S I L E M A. MARK5 Basic guide.   - All rights reserved R EIN V E N TIN G B U S I N E S S I L E M A MARK5 Basic guide 0.0 Welcome In this brief guide we will cover the basics of MARK5 such as starting up, understanding the MARK5 interface basics and sending

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

Using Windows 7 Explorer By Len Nasman, Bristol Village Computer Club

Using Windows 7 Explorer By Len Nasman, Bristol Village Computer Club By Len Nasman, Bristol Village Computer Club Understanding Windows 7 Explorer is key to taking control of your computer. If you have ever created a file and later had a hard time finding it, or if you

More information

4HOnline has a powerful report system that allows you to take an existing report, customize it to suit your needs, and then save it to use again.

4HOnline has a powerful report system that allows you to take an existing report, customize it to suit your needs, and then save it to use again. 4HOnline USING AND CREATING REPORTS Created: October 14, 2013 OVERVIEW 4HOnline has a powerful report system that allows you to take an existing report, customize it to suit your needs, and then save it

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

Please click double click on the icon labeled Internet Explorer, the picture is a blue letter E.

Please click double click on the icon labeled Internet Explorer, the picture is a blue letter E. Introduction to the Internet Instructor: Jonathan Barkand (412-655-8447) How to get connected? First chose an Internet provider, they will probably have software they will need to send you. There are dial-up

More information

This Tutorial is for Word 2007 but 2003 instructions are included in [brackets] after of each step.

This Tutorial is for Word 2007 but 2003 instructions are included in [brackets] after of each step. This Tutorial is for Word 2007 but 2003 instructions are included in [brackets] after of each step. Table of Contents Get Organized... 1 Create the Home Page... 1 Save the Home Page as a Word Document...

More information

Instructions for Using the Databases

Instructions for Using the Databases Appendix D Instructions for Using the Databases Two sets of databases have been created for you if you choose to use the Documenting Our Work forms. One set is in Access and one set is in Excel. They are

More information

Formatting: Cleaning Up Data

Formatting: Cleaning Up Data Formatting: Cleaning Up Data Hello and welcome to our lesson on cleaning up data, which is one of the final ones in this Formatting Module. What we re going to be doing in this lesson is using some of

More information

How to Download and Install R The R software can be downloaded from: Click on download R link.

How to Download and Install R The R software can be downloaded from:   Click on download R link. Tutorial 1: Getting Acquainted with R (Windows version) How to Download and Install R The R software can be downloaded from: www.r-project.org. Click on download R link. Choose a CRAN mirror from a location

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