Data Management 3. 1 Announcements. 1.1 Please Ask Questions. 1.2 A Note on Replicability

Size: px
Start display at page:

Download "Data Management 3. 1 Announcements. 1.1 Please Ask Questions. 1.2 A Note on Replicability"

Transcription

1 University of California, Santa Cruz Department of Economics ECON 294A (Fall 2014)- Stata Lab Instructor: Manuel Barron 1 Data Management 3 1 Announcements 1.1 Please Ask Questions If you don t understand something during lab, please ask me. If you have a question, it is very likely that other students also have that question. It may be that I didn t explain it correctly, or that I myself made a mistake. I learn a lot from questions (for instance, that Stata has an undo command 2 ). 1.2 A Note on Replicability Please make sure you s are 100% replicable. This means that you need to include all the commands that you used to get your results. For instance, if you open a dataset using the drop-down menus, make sure to copy and paste the code into the. The idea is that if anybody who has access to the same data as you runs the they will automatically get the same results as you. To make sure your is replicable, save it, close Stata, re-open Stata, and run it. If you didn t get the same results (or if you got an error message), your is not replicable. In principle, you could also send your s (and relevant datasets) to a classmate and ask them to open it in their computers. However, since you have to send them datasets and there are some compatibility issues between Apple and PC (for instance \vs / when writing directory paths), it is enough that it works in your computer. It is difficult to provide an exact recipe for replicability, but it is useful to start with clear all, so Stata removes everything it may have in memory already. Then, set the working directory. Make sure to copy and paste from the output window any relevant command that may have appeared if you used the drop-down menus. Also, make sure you do not overwrite the original dataset. If you do, then you wont be able to replicate the analysis. 1 Comments welcome. contact me at mbarron4 [at] ucsc 2... and that it is pretty useless. 1

2 clear all cd "/Users/Manue/Econ294A/data/" use week3.dta, clear [...Stata commands...] save week3_clean.dta, replace 2 labels Labels tell us what variables mean, so they are very useful. Working with them is also pretty straightforward. The main reason I have postponed the discussion about labels until now is because the first two lab sessions already had a lot of material. 2.1 Variable labels Variable labels are descriptions of the variables. For instance, we may have a variable called inc, a measure of income. We may want to attach a label, e.g., income. We may also want to describe that a bit further. For instance, we may want to describe if it is household or individual income, its frequency (monthly, yearly, weekly), and the units of measurement. Here some examples of labels we could attach to the income variable : label variable income "income" label variable income "household income" label variable income "household income, thousand $ per year" label variable income "annual household income, thousand $" The first type of label is pretty much useless. If the name of the variable is income, giving it the label of income provides no information at all. The second option is a bit better, because it distinguishes between household and individual income, but it says nothing about the frequency or units of measurement. Units of measurement are especially important with monetary values because sometimes they are measured in logs. The third line gives us a pretty informative label. It says its household income, measured in thousands of dollars per year (i.e., a value of 100 means that the household perceives an 2

3 annual income of $100,000. The fourth line gives us the same information with different phrasing. Its just a matter of taste between those last two. As with comments in code, it is easy to get carried away. You don t want to use a label that is too long. In general terms I would say too long. label variable income "income of every working-age household member, measured in US Dollars per year" Such detailed information belongs to a document usually called the codebook. 2.2 Value labels Value labels are labels that describe what different values of a variable mean. For instance, in the auto.dta dataset, the variable foreign takes the value of 1 if the car is foreign and 0 if it is domestic. To see the values, we can use the command tabulate with the option no label. tabulate foreign Car type Freq. Percent Cum. Domestic Foreign Total tabulate foreign, nolabel Car type Freq. Percent Cum Total

4 . gen domestic = 1 if foreign==0 (22 missing values generated). replace domestic = 0 if foreign==1 (22 real changes made). tab domestic domestic Freq. Percent Cum Total label define dom 0 "foreign" 1 "domestic". label values domestic dom. tab domestic domestic Freq. Percent Cum. foreign domestic Total wildcards Stata has two wildcards: the asterisk * and the question mark?. While the question mark replaces exactly one character, the asterisk is more flexible: you can use it to replace one character, many characters, or no characters. This will become clearer with a couple of examples. 3.1 the question mark - replace one character The question mark? replaces exactly one character. 4

5 sysuse auto, clear. sum pric? price This will summarize all the variables that start with pric and have exactly one additional character after the c. In the auto dataset, this is only the price variable.. gen rep88=rep78 if foreign==1. replace rep88=0 if foreign==0. gen rep79=rep78 if foreign==0. replace rep79=0 if foreign==1. sum rep? rep rep We generate a variable called rep88. When we issue the command sum rep?8, Stata looks for all variables that start with rep, have one more character -any character-, and finish with an 8. The variables that meet said condition in this dataset are rep78 and rep88. (Why does rep79 fail to meet the condition?) 3.2 the asterisk - replace any number of characters The asterisk replaces any number of characters (including no characters). For instance, we can ask Stata to summarize all variables that start with rep. : 5

6 . sum rep* rep rep rep Say we want to see the summary statistics for all the variables in the auto.dta dataset that start with price.. sum price* price sum price? variable price? not found r(111); We can also ask Stata to summarize all variables that end in 8:. sum * rep rep In addition, we may ask Stata to summarize all variables that start with rep and end with 78. Note that the asterisk can replace the empty space (but the question mark can t do that - it replaces exactly one character). 6

7 . sum rep* rep sum rep?78 variable rep?78 not found r(111); What does this command do?. sum rep*7? 4 recode recode changes the code of a variable. Say we have a variable called married that takes the value of 1 for people who are married and the value of 2 for people who are not married. We may want to transform it to an indicator variable that takes the value of 1 for people who are married and the value of 0 for people who are not married. To do so, we use the recode command. Lets check out the help file.. recode married 2=0 So the syntax is like this: first, we type the command name, then the variable we wish to recode. After that we type the original value, one equal sign, and the new value. Why do we type one equal sign and not two? Lets say we want to split the sample between married people and the rest. First, we need to inspect which values mean which marital status. married = 1 single = 2 widow(er) = 3 Don t know = 99 We can use recode as follows: recode married 2=0 3=0 99=. recode married 2/3=0 99=. 7

8 5 encode Imagine you are working with a dataset that has the respondents country of origin as strings (i.e. as words). For operational reasons, we may want to create a numerical code for this variable. encode allows us to encode string variables. use household.dta, clear encode state, gen(scode) One of the nice features of encode is that if your original variable already has a label it copies that label so you don t have to do it. In addition, it attaches value labels corresponding to each code, so if you browse through your data you will still see the strings (not just the codes associated to those numbers). 6 Missing Values As we saw earlier, Stata has two types of missing values. For numeric variables, missing values are represented by a period. Stata interprets the period as infinity. For string variables missing values are represented by (without blank space). 7 egen egen is an extension to the generate command. It allows us to generate a variable that contains, say, the average earnings for all individuals in the sample. egen earnings = rowtotal(income1 income2) egen mean_earnings = mean(earnings) In the same fashion, we can calculate the maximum, minimum, mean absolute deviation, median, mode, rank, standard deviation, and many other values. The options that perform calculations over the whole row (i.e. different sources of income for each individual) start with row, which makes them easy to spot in the help file. This command becomes way more useful when performed over subgroups of our dataset. The bysort command allows us to do exactly that. 8 commands by groups of observations: by and by sort In some occasions we may want to calculate values for groups of observations. For instance, we have data on households and we want to know the number of males in the household. 8

9 gen adult=1 if age>=18 & age!=. replace adult=0 if age<18 sort hhid by hhid: egen hhadults = sum(adult) The by varlist : prefix repeats a command for each group of observations for which the variables in varlist are the same. The data must first be sorted by varlist. This can be done by using the sort command, which orders the observations in ascending order according to the variable(s) given in the command. A cleaner way of doing this is using the bysort prefix (abbreviated by bus. For example, suppose we want to create for each individual a variable that equals the number of adults in a household. Let s say we define adult as being 18 years old or older. drop hhadults bys hhid: egen hhadults = sum(adult) 9 collapse The collapse command collapses datasets by groups of variables. It allows to calculate values of the relevant variables in the dataset, like mean, number of observations, median, percentiles, standard error of the mean, standard deviation, sum, maximum, minimum values, the inter-quartile range, among others. collapse (sum) adults (mean) pcincome=earnings, by(hhid) This command calculates the number of adults and the per capita income per household. It keeps those two variables and the hhid variable in memory, and drops everything else. collapse (sum) hhsize=adult hhincome=earnings /// (mean) pcincome=earnings (first) hhsize2=hhadults, by(hhid) This command created three variables: hhsize, hhincome, and pcincome. It keeps those variables, plus the hhid variable, and removes everything else from memory. 10 reshape reshape is a Stata command that allows us to change the structure of the data. It converts the data from long to wide form and vice versa. 9

10 Long Form id year income i j stub The wide form is given by: To go from long to wide: reshape wide income, i(id) j(year) Wide Form id income2013 income2014 i stub 1 stub , where year is an existing variable. To go from wide to long, reshape long income, i(id) j(year), where year is a new variable. 11 Exercise - Graphs Using collapse and the graph commands we ve seen this far, graph 1. Mean income (and mean standard errors) by years of schooling 2. Mean income (and 95% confidence intervals) by gender 10

Module 2 Basic Data Management, Graphs, and Log-Files

Module 2 Basic Data Management, Graphs, and Log-Files AGRODEP Stata Training April 2013 Module 2 Basic Data Management, Graphs, and Log-Files Manuel Barron 1 and Pia Basurto 2 1 University of California, Berkeley, Department of Agricultural and Resource Economics

More information

SHORT COURSE ON Stata SESSION ONE Getting Your Feet Wet with Stata

SHORT COURSE ON Stata SESSION ONE Getting Your Feet Wet with Stata SHORT COURSE ON Stata SESSION ONE Getting Your Feet Wet with Stata Instructor: Cathy Zimmer 962-0516, cathy_zimmer@unc.edu 1) INTRODUCTION a) Who am I? Who are you? b) Overview of Course i) Working with

More information

Basics of STATA. 1 Data les. 2 Loading data into STATA

Basics of STATA. 1 Data les. 2 Loading data into STATA Basics of STATA This handout is intended as an introduction to STATA. STATA is available on the PCs in the computer lab as well as on the Unix system. Throughout, bold type will refer to STATA commands,

More information

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

ECONOMICS 351* -- Stata 10 Tutorial 2. Stata 10 Tutorial 2 Stata 10 Tutorial 2 TOPIC: Introduction to Selected Stata Commands DATA: auto1.dta (the Stata-format data file you created in Stata Tutorial 1) or auto1.raw (the original text-format data file) TASKS:

More information

Appendix III: SPSS Preliminary

Appendix III: SPSS Preliminary Appendix III: SPSS Preliminary SPSS is a statistical software package that provides a number of tools needed for the analytical process planning, data collection, data access and management, analysis,

More information

Trade Flows and Trade Policy Analysis. October 2013 Dhaka, Bangladesh

Trade Flows and Trade Policy Analysis. October 2013 Dhaka, Bangladesh Trade Flows and Trade Policy Analysis October 2013 Dhaka, Bangladesh Witada Anukoonwattaka (ESCAP) Cosimo Beverelli (WTO) 1 Introduction to STATA 2 Content a. Datasets used in Introduction to Stata b.

More information

Using SPSS, Chapter 2: Descriptive Statistics

Using SPSS, Chapter 2: Descriptive Statistics 1 Using SPSS, Chapter 2: Descriptive Statistics Chapters 2.1 & 2.2 Descriptive Statistics 2 Mean, Standard Deviation, Variance, Range, Minimum, Maximum 2 Mean, Median, Mode, Standard Deviation, Variance,

More information

Longitudinal Data Analysis: Stata Tutorial

Longitudinal Data Analysis: Stata Tutorial Part A: Overview of Stata I. Reading Data: Longitudinal Data Analysis: Stata Tutorial use Read data that have been saved in Stata format. infile Read raw data and dictionary files. insheet Read spreadsheets

More information

Introduction to IBM SPSS Statistics

Introduction to IBM SPSS Statistics CONTENTS Arizona State University College of Health Solutions College of Nursing and Health Innovation Introduction to IBM SPSS Statistics Edward A. Greenberg, PhD Director, Data Lab PAGE About This Document

More information

Introduction; Descriptive & Univariate Statistics

Introduction; Descriptive & Univariate Statistics Introduction; Descriptive & Univariate Statistics I. KEY COCEPTS A. Population. Definitions:. The entire set of members in a group. EXAMPLES: All U.S. citizens; all otre Dame Students. 2. All values of

More information

How to set the main menu of STATA to default factory settings standards

How to set the main menu of STATA to default factory settings standards University of Pretoria Data analysis for evaluation studies Examples in STATA version 11 List of data sets b1.dta (To be created by students in class) fp1.xls (To be provided to students) fp1.txt (To be

More information

IBM SPSS Direct Marketing 23

IBM SPSS Direct Marketing 23 IBM SPSS Direct Marketing 23 Note Before using this information and the product it supports, read the information in Notices on page 25. Product Information This edition applies to version 23, release

More information

IBM SPSS Direct Marketing 22

IBM SPSS Direct Marketing 22 IBM SPSS Direct Marketing 22 Note Before using this information and the product it supports, read the information in Notices on page 25. Product Information This edition applies to version 22, release

More information

Create Custom Tables in No Time

Create Custom Tables in No Time SPSS Custom Tables 17.0 Create Custom Tables in No Time Easily analyze and communicate your results with SPSS Custom Tables, an add-on module for the SPSS Statistics product line Share analytical results

More information

Running Descriptive Statistics: Sample and Population Values

Running Descriptive Statistics: Sample and Population Values Running Descriptive Statistics: Sample and Population Values Goal This exercise is an introduction to a few of the variables in the household- and person-level LIS data sets. The exercise concentrates

More information

Introduction to STATA 11 for Windows

Introduction to STATA 11 for Windows 1/27/2012 Introduction to STATA 11 for Windows Stata Sizes...3 Documentation...3 Availability...3 STATA User Interface...4 Stata Language Syntax...5 Entering and Editing Stata Commands...6 Stata Online

More information

2: Entering Data. Open SPSS and follow along as your read this description.

2: Entering Data. Open SPSS and follow along as your read this description. 2: Entering Data Objectives Understand the logic of data files Create data files and enter data Insert cases and variables Merge data files Read data into SPSS from other sources The Logic of Data Files

More information

4 Other useful features on the course web page. 5 Accessing SAS

4 Other useful features on the course web page. 5 Accessing SAS 1 Using SAS outside of ITCs Statistical Methods and Computing, 22S:30/105 Instructor: Cowles Lab 1 Jan 31, 2014 You can access SAS from off campus by using the ITC Virtual Desktop Go to https://virtualdesktopuiowaedu

More information

Lab 11. Simulations. The Concept

Lab 11. Simulations. The Concept Lab 11 Simulations In this lab you ll learn how to create simulations to provide approximate answers to probability questions. We ll make use of a particular kind of structure, called a box model, that

More information

F nest. Financial Intermediation Network of European Studies. Data and Sample Management with Stata

F nest. Financial Intermediation Network of European Studies. Data and Sample Management with Stata F nest Financial Intermediation Network of European Studies S U M M E R S C H O O L Data and Sample Management with Stata Dr. Giovanni Cerulli 6 October 2015 (half day) University of Rome III, Italy Lecturer

More information

Scatter Plots with Error Bars

Scatter Plots with Error Bars Chapter 165 Scatter Plots with Error Bars Introduction The procedure extends the capability of the basic scatter plot by allowing you to plot the variability in Y and X corresponding to each point. Each

More information

USB Recorder. User s Guide. Sold by: Toll Free: (877) 389-0000

USB Recorder. User s Guide. Sold by:  Toll Free: (877) 389-0000 USB Recorder User s Guide Sold by: http://www.twacomm.com Toll Free: (877) 389-0000 Table of Contents 1. Getting Started 1-1...First Login 1-2...Creating a New User 2. Administration 2-1...General Administration

More information

Client Marketing: Sets

Client Marketing: Sets Client Marketing Client Marketing: Sets Purpose Client Marketing Sets are used for selecting clients from the client records based on certain criteria you designate. Once the clients are selected, you

More information

Stata 12 Merging Guide. Nathan Favero Texas A&M University October 19, 2012

Stata 12 Merging Guide. Nathan Favero Texas A&M University October 19, 2012 Nathan Favero Texas A&M University October 19, 2012 Contents Best Practices, pg. 3 Using Merge & Append, pg. 4 Merge, pg. 11 Append, pg. 14 Other Useful Commands, pg. 15 Importing Data into Stata, pg.

More information

S P S S Statistical Package for the Social Sciences

S P S S Statistical Package for the Social Sciences S P S S Statistical Package for the Social Sciences Data Entry Data Management Basic Descriptive Statistics Jamie Lynn Marincic Leanne Hicks Survey, Statistics, and Psychometrics Core Facility (SSP) July

More information

Data Preparation in SPSS

Data Preparation in SPSS Data Preparation in SPSS Jamie DeCoster Center for Advanced Study of Teaching and Learning University of Virginia 350 Old Ivy Way Charlottesville, VA 22903 August 15, 2012 If you wish to cite the contents

More information

SPSS: Getting Started. For Windows

SPSS: Getting Started. For Windows For Windows Updated: August 2012 Table of Contents Section 1: Overview... 3 1.1 Introduction to SPSS Tutorials... 3 1.2 Introduction to SPSS... 3 1.3 Overview of SPSS for Windows... 3 Section 2: Entering

More information

Introduction Course in SPSS - Evening 1

Introduction Course in SPSS - Evening 1 ETH Zürich Seminar für Statistik Introduction Course in SPSS - Evening 1 Seminar für Statistik, ETH Zürich All data used during the course can be downloaded from the following ftp server: ftp://stat.ethz.ch/u/sfs/spsskurs/

More information

GETTING YOUR DATA INTO SPSS

GETTING YOUR DATA INTO SPSS GETTING YOUR DATA INTO SPSS UNIVERSITY OF GUELPH LUCIA COSTANZO lcostanz@uoguelph.ca REVISED SEPTEMBER 2011 CONTENTS Getting your Data into SPSS... 0 SPSS availability... 3 Data for SPSS Sessions... 4

More information

SPSS Manual for Introductory Applied Statistics: A Variable Approach

SPSS Manual for Introductory Applied Statistics: A Variable Approach SPSS Manual for Introductory Applied Statistics: A Variable Approach John Gabrosek Department of Statistics Grand Valley State University Allendale, MI USA August 2013 2 Copyright 2013 John Gabrosek. All

More information

ASSIGNMENT 4 PREDICTIVE MODELING AND GAINS CHARTS

ASSIGNMENT 4 PREDICTIVE MODELING AND GAINS CHARTS DATABASE MARKETING Fall 2015, max 24 credits Dead line 15.10. ASSIGNMENT 4 PREDICTIVE MODELING AND GAINS CHARTS PART A Gains chart with excel Prepare a gains chart from the data in \\work\courses\e\27\e20100\ass4b.xls.

More information

Introduction to Quantitative Methods

Introduction to Quantitative Methods Introduction to Quantitative Methods October 15, 2009 Contents 1 Definition of Key Terms 2 2 Descriptive Statistics 3 2.1 Frequency Tables......................... 4 2.2 Measures of Central Tendencies.................

More information

Excel Database Management Microsoft Excel 2003

Excel Database Management Microsoft Excel 2003 Excel Database Management Microsoft Reference Guide University Technology Services Computer Training Copyright Notice Copyright 2003 EBook Publishing. All rights reserved. No part of this publication may

More information

USB Recorder User Guide

USB Recorder User Guide USB Recorder User Guide Table of Contents 1. Getting Started 1-1... First Login 1-2... Creating a New User 2. Administration 2-1... General Administration 2-2... User Administration 3. Recording and Playing

More information

Psy 210 Conference Poster on Sex Differences in Car Accidents 10 Marks

Psy 210 Conference Poster on Sex Differences in Car Accidents 10 Marks Psy 210 Conference Poster on Sex Differences in Car Accidents 10 Marks Overview The purpose of this assignment is to compare the number of car accidents that men and women have. The goal is to determine

More information

EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002

EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002 EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002 Table of Contents Part I Creating a Pivot Table Excel Database......3 What is a Pivot Table...... 3 Creating Pivot Tables

More information

Descriptive Statistics

Descriptive Statistics Descriptive Statistics Descriptive statistics consist of methods for organizing and summarizing data. It includes the construction of graphs, charts and tables, as well various descriptive measures such

More information

EXST SAS Lab Lab #4: Data input and dataset modifications

EXST SAS Lab Lab #4: Data input and dataset modifications EXST SAS Lab Lab #4: Data input and dataset modifications Objectives 1. Import an EXCEL dataset. 2. Infile an external dataset (CSV file) 3. Concatenate two datasets into one 4. The PLOT statement will

More information

How To Write Tvalue Amortization Software

How To Write Tvalue Amortization Software TimeValue Software Amortization Software Version 5 User s Guide s o f t w a r e User's Guide TimeValue Software Amortization Software Version 5 ii s o f t w a r e ii TValue Amortization Software, Version

More information

25 Working with categorical data and factor variables

25 Working with categorical data and factor variables 25 Working with categorical data and factor variables Contents 25.1 Continuous, categorical, and indicator variables 25.1.1 Converting continuous variables to indicator variables 25.1.2 Converting continuous

More information

SAS Analyst for Windows Tutorial

SAS Analyst for Windows Tutorial Updated: August 2012 Table of Contents Section 1: Introduction... 3 1.1 About this Document... 3 1.2 Introduction to Version 8 of SAS... 3 Section 2: An Overview of SAS V.8 for Windows... 3 2.1 Navigating

More information

Microsoft Query, the helper application included with Microsoft Office, allows

Microsoft Query, the helper application included with Microsoft Office, allows 3 RETRIEVING ISERIES DATA WITH MICROSOFT QUERY Microsoft Query, the helper application included with Microsoft Office, allows Office applications such as Word and Excel to read data from ODBC data sources.

More information

SAS: A Mini-Manual for ECO 351 by Andrew C. Brod

SAS: A Mini-Manual for ECO 351 by Andrew C. Brod SAS: A Mini-Manual for ECO 351 by Andrew C. Brod 1. Introduction This document discusses the basics of using SAS to do problems and prepare for the exams in ECO 351. I decided to produce this little guide

More information

1. To start Installation: To install the reporting tool, copy the entire contents of the zip file to a directory of your choice. Run the exe.

1. To start Installation: To install the reporting tool, copy the entire contents of the zip file to a directory of your choice. Run the exe. CourseWebs Reporting Tool Desktop Application Instructions The CourseWebs Reporting tool is a desktop application that lets a system administrator modify existing reports and create new ones. Changes to

More information

Directions for using SPSS

Directions for using SPSS Directions for using SPSS Table of Contents Connecting and Working with Files 1. Accessing SPSS... 2 2. Transferring Files to N:\drive or your computer... 3 3. Importing Data from Another File Format...

More information

Data Presentation. Paper 126-27. Using SAS Macros to Create Automated Excel Reports Containing Tables, Charts and Graphs

Data Presentation. Paper 126-27. Using SAS Macros to Create Automated Excel Reports Containing Tables, Charts and Graphs Paper 126-27 Using SAS Macros to Create Automated Excel Reports Containing Tables, Charts and Graphs Tugluke Abdurazak Abt Associates Inc. 1110 Vermont Avenue N.W. Suite 610 Washington D.C. 20005-3522

More information

Stata Tutorial. 1 Introduction. 1.1 Stata Windows and toolbar. Econometrics676, Spring2008

Stata Tutorial. 1 Introduction. 1.1 Stata Windows and toolbar. Econometrics676, Spring2008 1 Introduction Stata Tutorial Econometrics676, Spring2008 1.1 Stata Windows and toolbar Review : past commands appear here Variables : variables list Command : where you type your commands Results : results

More information

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide Open Crystal Reports From the Windows Start menu choose Programs and then Crystal Reports. Creating a Blank Report Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick

More information

University of Hull Department of Computer Science. Wrestling with Python Week 01 Playing with Python

University of Hull Department of Computer Science. Wrestling with Python Week 01 Playing with Python Introduction Welcome to our Python sessions. University of Hull Department of Computer Science Wrestling with Python Week 01 Playing with Python Vsn. 1.0 Rob Miles 2013 Please follow the instructions carefully.

More information

Row vs. Column Percents. tab PRAYER DEGREE, row col

Row vs. Column Percents. tab PRAYER DEGREE, row col Bivariate Analysis - Crosstabulation One of most basic research tools shows how x varies with respect to y Interpretation of table depends upon direction of percentaging example Row vs. Column Percents.

More information

Using Excel for Analyzing Survey Questionnaires Jennifer Leahy

Using Excel for Analyzing Survey Questionnaires Jennifer Leahy University of Wisconsin-Extension Cooperative Extension Madison, Wisconsin PD &E Program Development & Evaluation Using Excel for Analyzing Survey Questionnaires Jennifer Leahy G3658-14 Introduction You

More information

How to Use a Data Spreadsheet: Excel

How to Use a Data Spreadsheet: Excel How to Use a Data Spreadsheet: Excel One does not necessarily have special statistical software to perform statistical analyses. Microsoft Office Excel can be used to run statistical procedures. Although

More information

DESCRIPTIVE STATISTICS & DATA PRESENTATION*

DESCRIPTIVE STATISTICS & DATA PRESENTATION* Level 1 Level 2 Level 3 Level 4 0 0 0 0 evel 1 evel 2 evel 3 Level 4 DESCRIPTIVE STATISTICS & DATA PRESENTATION* Created for Psychology 41, Research Methods by Barbara Sommer, PhD Psychology Department

More information

MEASURES OF VARIATION

MEASURES OF VARIATION NORMAL DISTRIBTIONS MEASURES OF VARIATION In statistics, it is important to measure the spread of data. A simple way to measure spread is to find the range. But statisticians want to know if the data are

More information

Search help. More on Office.com: images templates

Search help. More on Office.com: images templates Page 1 of 14 Access 2010 Home > Access 2010 Help and How-to > Getting started Search help More on Office.com: images templates Access 2010: database tasks Here are some basic database tasks that you can

More information

Syntax Menu Description Options Remarks and examples Stored results References Also see

Syntax Menu Description Options Remarks and examples Stored results References Also see Title stata.com xi Interaction expansion Syntax Syntax Menu Description Options Remarks and examples Stored results References Also see xi [, prefix(string) noomit ] term(s) xi [, prefix(string) noomit

More information

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations.

EXCEL Tutorial: How to use EXCEL for Graphs and Calculations. EXCEL Tutorial: How to use EXCEL for Graphs and Calculations. Excel is powerful tool and can make your life easier if you are proficient in using it. You will need to use Excel to complete most of your

More information

Independent samples t-test. Dr. Tom Pierce Radford University

Independent samples t-test. Dr. Tom Pierce Radford University Independent samples t-test Dr. Tom Pierce Radford University The logic behind drawing causal conclusions from experiments The sampling distribution of the difference between means The standard error of

More information

Best Practices for Computer Programming in Economics

Best Practices for Computer Programming in Economics Best Practices for Computer Programming in Economics Tal Gross January 19, 2016 All empirical work requires computer code. And yet, economics departments almost never teach basic programming skills. Good

More information

The phrases above are divided by their function. What is each section of language used to do?

The phrases above are divided by their function. What is each section of language used to do? Functional language for IELTS Speaking correction and brainstorming Work in pairs to correct all the phrases below. I have ever I have personally experience of this. My most favourite is I prefer than

More information

Getting started with the Stata

Getting started with the Stata Getting started with the Stata 1. Begin by going to a Columbia Computer Labs. 2. Getting started Your first Stata session. Begin by starting Stata on your computer. Using a PC: 1. Click on start menu 2.

More information

SPSS The Basics. Jennifer Thach RHS Assessment Office March 3 rd, 2014

SPSS The Basics. Jennifer Thach RHS Assessment Office March 3 rd, 2014 SPSS The Basics Jennifer Thach RHS Assessment Office March 3 rd, 2014 Why use SPSS? - Used heavily in the Social Science & Business world - Ability to perform basic to high-level statistical analysis (i.e.

More information

There are numerous ways to access monitors:

There are numerous ways to access monitors: Remote Monitors REMOTE MONITORS... 1 Overview... 1 Accessing Monitors... 1 Creating Monitors... 2 Monitor Wizard Options... 11 Editing the Monitor Configuration... 14 Status... 15 Location... 17 Alerting...

More information

Anyone Can Learn PROC TABULATE

Anyone Can Learn PROC TABULATE Paper 60-27 Anyone Can Learn PROC TABULATE Lauren Haworth, Genentech, Inc., South San Francisco, CA ABSTRACT SAS Software provides hundreds of ways you can analyze your data. You can use the DATA step

More information

Jet Data Manager 2012 User Guide

Jet Data Manager 2012 User Guide Jet Data Manager 2012 User Guide Welcome This documentation provides descriptions of the concepts and features of the Jet Data Manager and how to use with them. With the Jet Data Manager you can transform

More information

Introduction to Statistical Computing in Microsoft Excel By Hector D. Flores; hflores@rice.edu, and Dr. J.A. Dobelman

Introduction to Statistical Computing in Microsoft Excel By Hector D. Flores; hflores@rice.edu, and Dr. J.A. Dobelman Introduction to Statistical Computing in Microsoft Excel By Hector D. Flores; hflores@rice.edu, and Dr. J.A. Dobelman Statistics lab will be mainly focused on applying what you have learned in class with

More information

Using Microsoft Excel to Manage and Analyze Data: Some Tips

Using Microsoft Excel to Manage and Analyze Data: Some Tips Using Microsoft Excel to Manage and Analyze Data: Some Tips Larger, complex data management may require specialized and/or customized database software, and larger or more complex analyses may require

More information

WHO STEPS Surveillance Support Materials. STEPS Epi Info Training Guide

WHO STEPS Surveillance Support Materials. STEPS Epi Info Training Guide STEPS Epi Info Training Guide Department of Chronic Diseases and Health Promotion World Health Organization 20 Avenue Appia, 1211 Geneva 27, Switzerland For further information: www.who.int/chp/steps WHO

More information

Data exploration with Microsoft Excel: univariate analysis

Data exploration with Microsoft Excel: univariate analysis Data exploration with Microsoft Excel: univariate analysis Contents 1 Introduction... 1 2 Exploring a variable s frequency distribution... 2 3 Calculating measures of central tendency... 16 4 Calculating

More information

Q1. Where else, other than your home, do you use the internet? (Check all that apply). Library School Workplace Internet on a cell phone Other

Q1. Where else, other than your home, do you use the internet? (Check all that apply). Library School Workplace Internet on a cell phone Other Exploring Check-All Questions: Frequencies, Multiple Response, and Aggregation Target Software & Version: SPSS v19 Last Updated on May 4, 2012 Created by Laura Atkins Sometimes several responses or measurements

More information

Easy Casino Profits. Congratulations!!

Easy Casino Profits. Congratulations!! Easy Casino Profits The Easy Way To Beat The Online Casinos Everytime! www.easycasinoprofits.com Disclaimer The authors of this ebook do not promote illegal, underage gambling or gambling to those living

More information

How to Make the Most of Excel Spreadsheets

How to Make the Most of Excel Spreadsheets How to Make the Most of Excel Spreadsheets Analyzing data is often easier when it s in an Excel spreadsheet rather than a PDF for example, you can filter to view just a particular grade, sort to view which

More information

Data Analysis Stata (version 13)

Data Analysis Stata (version 13) Data Analysis Stata (version 13) There are many options for learning Stata (www.stata.com). Stata s help facility (accessed by a pull-down menu or by command or by clicking on?) consists of help files

More information

Using Stata for Categorical Data Analysis

Using Stata for Categorical Data Analysis Using Stata for Categorical Data Analysis NOTE: These problems make extensive use of Nick Cox s tab_chi, which is actually a collection of routines, and Adrian Mander s ipf command. From within Stata,

More information

Projects Involving Statistics (& SPSS)

Projects Involving Statistics (& SPSS) Projects Involving Statistics (& SPSS) Academic Skills Advice Starting a project which involves using statistics can feel confusing as there seems to be many different things you can do (charts, graphs,

More information

Finding and Opening Documents

Finding and Opening Documents In this chapter Learn how to get around in the Open File dialog box. See how to navigate through drives and folders and display the files in other folders. Learn how to search for a file when you can t

More information

Finding the last cell in an Excel range Using built in Excel functions to locate the last cell containing data in a range of cells.

Finding the last cell in an Excel range Using built in Excel functions to locate the last cell containing data in a range of cells. Finding the last cell in an Excel range Using built in Excel functions to locate the last cell containing data in a range of cells. There are all sorts of times in Excel when you will need to find the

More information

Exhibit memory of previously-learned materials by recalling facts, terms, basic concepts, and answers. Key Words

Exhibit memory of previously-learned materials by recalling facts, terms, basic concepts, and answers. Key Words The Six Levels of Questioning Level 1 Knowledge Exhibit memory of previously-learned materials by recalling facts, terms, basic concepts, and answers. who what why when where which omit choose find how

More information

Introduction to PASW Statistics 34152-001

Introduction to PASW Statistics 34152-001 Introduction to PASW Statistics 34152-001 V18 02/2010 nm/jdr/mr For more information about SPSS Inc., an IBM Company software products, please visit our Web site at http://www.spss.com or contact: SPSS

More information

Importing and Exporting With SPSS for Windows 17 TUT 117

Importing and Exporting With SPSS for Windows 17 TUT 117 Information Systems Services Importing and Exporting With TUT 117 Version 2.0 (Nov 2009) Contents 1. Introduction... 3 1.1 Aim of this Document... 3 2. Importing Data from Other Sources... 3 2.1 Reading

More information

How To Use Excel With A Calculator

How To Use Excel With A Calculator Functions & Data Analysis Tools Academic Computing Services www.ku.edu/acs Abstract: This workshop focuses on the functions and data analysis tools of Microsoft Excel. Topics included are the function

More information

CALCULATIONS & STATISTICS

CALCULATIONS & STATISTICS CALCULATIONS & STATISTICS CALCULATION OF SCORES Conversion of 1-5 scale to 0-100 scores When you look at your report, you will notice that the scores are reported on a 0-100 scale, even though respondents

More information

System Administration and Log Management

System Administration and Log Management CHAPTER 6 System Overview System Administration and Log Management Users must have sufficient access rights, or permission levels, to perform any operations on network elements (the devices, such as routers,

More information

CNC Transfer. Operating Manual

CNC Transfer. Operating Manual Rank Brothers Ltd CNC Transfer Operating Manual Manufactured by: Rank Brothers Ltd 56 High Street, Bottisham, Cambridge CB25 9DA, England Tel: +44 (0)1223 811369 Fax: +44 (0)1223 811441 Website: http://www.rankbrothers.co.uk/

More information

ExpressShipper UK User Guide

ExpressShipper UK User Guide ExpressShipper Quick User Guide ExpressShipper Section 0 Page 1 of 63 Section 1: Structure of the User Guide In this section This section contains the following topics: Topic See Page What is the purpose

More information

Mail Merge Tutorial (for Word 2003-2007) By Allison King Spring 2007 (updated Fall 2007)

Mail Merge Tutorial (for Word 2003-2007) By Allison King Spring 2007 (updated Fall 2007) Mail Merge Tutorial (for Word 2003-2007) By Allison King Spring 2007 (updated Fall 2007) What is mail merge? You've probably heard it mentioned around the office or at an interview (especially for a temp

More information

USC Marshall School of Business Academic Information Services. Excel 2007 Qualtrics Survey Analysis

USC Marshall School of Business Academic Information Services. Excel 2007 Qualtrics Survey Analysis USC Marshall School of Business Academic Information Services Excel 2007 Qualtrics Survey Analysis DESCRIPTION OF EXCEL ANALYSIS TOOLS AVAILABLE... 3 Summary of Tools Available and their Properties...

More information

Excel Charts & Graphs

Excel Charts & Graphs MAX 201 Spring 2008 Assignment #6: Charts & Graphs; Modifying Data Due at the beginning of class on March 18 th Introduction This assignment introduces the charting and graphing capabilities of SPSS and

More information

Northumberland Knowledge

Northumberland Knowledge Northumberland Knowledge Know Guide How to Analyse Data - November 2012 - This page has been left blank 2 About this guide The Know Guides are a suite of documents that provide useful information about

More information

Quick Stata Guide by Liz Foster

Quick Stata Guide by Liz Foster by Liz Foster Table of Contents Part 1: 1 describe 1 generate 1 regress 3 scatter 4 sort 5 summarize 5 table 6 tabulate 8 test 10 ttest 11 Part 2: Prefixes and Notes 14 by var: 14 capture 14 use of the

More information

STEP 5: Giving Feedback

STEP 5: Giving Feedback STEP 5: Giving Feedback Introduction You are now aware of the responsibilities of workplace mentoring, the six step approach to teaching skills, the importance of identifying the point of the lesson, and

More information

This book serves as a guide for those interested in using IBM SPSS

This book serves as a guide for those interested in using IBM SPSS 1 Overview This book serves as a guide for those interested in using IBM SPSS Statistics software to assist in statistical data analysis whether as a companion to a statistics or research methods course,

More information

OA3-10 Patterns in Addition Tables

OA3-10 Patterns in Addition Tables OA3-10 Patterns in Addition Tables Pages 60 63 Standards: 3.OA.D.9 Goals: Students will identify and describe various patterns in addition tables. Prior Knowledge Required: Can add two numbers within 20

More information

GOD S BIG STORY Week 1: Creation God Saw That It Was Good 1. LEADER PREPARATION

GOD S BIG STORY Week 1: Creation God Saw That It Was Good 1. LEADER PREPARATION This includes: 1. Leader Preparation 2. Lesson Guide GOD S BIG STORY Week 1: Creation God Saw That It Was Good 1. LEADER PREPARATION LESSON OVERVIEW Exploring the first two chapters of Genesis provides

More information

SPSS Explore procedure

SPSS Explore procedure SPSS Explore procedure One useful function in SPSS is the Explore procedure, which will produce histograms, boxplots, stem-and-leaf plots and extensive descriptive statistics. To run the Explore procedure,

More information

SPSS Step-by-Step Tutorial: Part 1

SPSS Step-by-Step Tutorial: Part 1 SPSS Step-by-Step Tutorial: Part 1 For SPSS Version 11.5 DataStep Development 2004 Table of Contents 1 SPSS Step-by-Step 5 Introduction 5 Installing the Data 6 Installing files from the Internet 6 Installing

More information

Alteryx Predictive Analytics for Oracle R

Alteryx Predictive Analytics for Oracle R Alteryx Predictive Analytics for Oracle R I. Software Installation In order to be able to use Alteryx s predictive analytics tools with an Oracle Database connection, your client machine must be configured

More information

Files. Files. Files. Files. Files. File Organisation. What s it all about? What s in a file?

Files. Files. Files. Files. Files. File Organisation. What s it all about? What s in a file? Files What s it all about? Information being stored about anything important to the business/individual keeping the files. The simple concepts used in the operation of manual files are often a good guide

More information

Deposit Direct. Getting Started Guide

Deposit Direct. Getting Started Guide Deposit Direct Getting Started Guide Table of Contents Before You Start... 3 Installing the Deposit Direct application for use with Microsoft Windows Vista... 4 Running Programs in Microsoft Windows Vista...

More information