Problem Set 1 Troubleshooting. Log Files Save in text format for readability: log using ps1.log, replace or: log using ps1, text.

Slides:



Advertisements
Similar presentations
Housekeeping: Variable labels, value labels, calculations and recoding
Advertisements

S.P.R.I.N.T v2.0 User Guide Infrastructure Access Feedback Survey.
Research Methods Lecture 3 More STATA Ian Walker Room S2.109   Slides available at:
{ Advanced Stata Programming Andrew Hicks CCPR Statistics and Methods Core.
Apr-15H.S.1Apr-15H.S.1 Stata Introduction, Short v2 Hein Stigum Presentation, data and programs at: courses.
Galileo One Stop Shop Somerton PD Department. OBJECTIVES  Log in/out and navigating Galileo  Learn how to access reports  Review assessment results.
RESEARCH WORKFLOW USING STATA How to Be an Effective Researcher CCPR Workshop.
1. Overview Brief guide to the display windows and toolbar
Generating new variables and manipulating data with STATA Biostatistics 212 Lecture 3.
I NTRO TO S TATA James Ng Center for Digital Scholarship Hesburgh Libraries.
Getting Started With STATA How do I do this? It probably opened automatically, but you may have to save it to the desktop, and double-click it to open.
INTRODUCTION TO STATA Võ Tuấn Khoa Trần Thế Trung.
Taking the pain out of looping and storing Patrick Royston Nordic and Baltic Stata Users’ meeting, Stockholm, 11 November 2011.
Generating new variables and manipulating data with STATA Biostatistics 212 Lecture 3.
IPUMS Extract Exercise Lisa Neidert Poverty/American Community Survey Workshop July
Generating new variables and manipulating data with STATA Biostatistics 212 Session 2.
An Introduction into Stata I Prof. Dr. Herbert Brücker University of Bamberg Seminar “Migration and the Labour Market” Session 3, June 9, 2011.
Good Data Management Practices Patty Glynn 10/31/05
Getting Started with your data
Consumption calculations with real data – CORRECTED VERSION (CORRECTIONS IN RED) Gretchen Donehower Day 3, Session 2, NTA Time Use and Gender Workshop.
STATA User Group September 2007 Shuk-Li Man and Hannah Evans.
Stata 12 Merging Guide Nathan Favero Texas A&M University October 19, 2012.
Econometric Analysis Using Stata
Stata Workshop #1 Chiu-Hsieh (Paul) Hsu Associate Professor College of Public Health
Experiences with multiple propensity score matching Jan Hagemejer & Joanna Tyrowicz University of Warsaw & National Bank of Poland.
Key Data Management Tasks in Stata
Tricks in Stata Anke Huss Generating „automatic“ tables in a do-file.
L3: BIG STATA CONCEPTS Getting started with Stata Angela Ambroz May 2015.
Generating new variables and manipulating data with STATA Biostatistics 212 Lecture 3.
CARSAM Quick Reference Guide for Users May 2012 CORPORATE ACCOUNT RECONCILIATION Manager Approval Training.
Consumption calculations with real data Gretchen Donehower Day 3, Session 2, NTA Time Use and Gender Workshop Wednesday, May 23, 2012 Institute for Labor,
STATA for S-052 M. Shane Tutwiler Your Friendly S-040 Lecturer William Johnston IT Services Harvard Graduate School of Education.
Data Cleaning in Financial Modules Workshop in Frankfurt Mario Schnalzenberger.
Computing for Research I Spring 2014 Primary Instructor: Elizabeth Garrett-Mayer Introduction to Stata February 19.
PSC 47410: Data Analysis Workshop  What’s the purpose of this exercise?  The workshop’s research questions:  Who supports war in America?  How consistent.
About GGum Zhao Shouying. General on IRT Item response theory models have become increasingly popular measurement tools in the past thirty-five years.
Today Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation – GOF.
American Housing Survey Introduction to the Data.
Stata Review Session Economics 1018 Abby Williamson and Hongyi Li November 17, 2006.
Data Setup Mombasa Workshop Amonthep “Beet” Chawla.
Rasch model (MML estimation) for 12 GHQ items. Loevinger H, ppp pmm for 12 GHQ items.
Topics Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation –
1 Quiz Manager – Detail Steps. 2 Materials License Quiz Manager Create a new multiple choice or short answer quiz Reuse previously created quizzes Edit.
Ec 2390: Section 1 Useful STATA commands Jack Willis September 14th, 2015.
親愛的吉姆舅舅: 今天吃完晚餐後,奶奶說,在家 裡情況變好以前,您要我搬到城裡跟 您住。奶奶有沒有跟您說,爸爸已經 好久沒有工作,也好久沒有人請媽媽 做衣服了? 我們聽完都哭了,連爸爸也哭了, 但是媽媽說了一個故事讓我們又笑了。 她說:您們小的時候,她曾經被您追 得爬到樹上去,真的嗎? 雖然我個子小,但是我很強壯,
Topics Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation –
Kronos Information for DU Supervisors: Managing Timecard Exceptions.
Advanced Quantitative Techniques
Quote It! Overview July 2011 Speak to slide /26/11 1.
Data Management in Stata
DOCUMENT CREATION Main Letter Type: Editor Type: Log Documents: Case
Creating a wiki phage for your lab notebook
Lecture 3: Changing Data
Econometrics 704 Emilio Cuilty
IPUMS Extract Exercise
ECONOMETRICS ii – spring 2018
Illinois Goal Assessment Program
Introduction to Stata Spring 2017.
STATA User Group September 2007
Save for Web and Devices in PS
Simple Spreadsheet tasks
Introduction to Stata II
Stata Basic Course Lab 4.
Blackboard Save a File as .rtf
Stata Basic Course Lab 2.
Presentation, data and programs at:
More to Learn Viewing file details
Two Issues on Remote Data Access
Evaluation of Public Policy
DEPT #### Full Course Title Enter Course Information:
Presentation transcript:

Problem Set 1 Troubleshooting

Log Files Save in text format for readability: log using ps1.log, replace or: log using ps1, text

Handling Missing Values -By default, Stata excludes all observations marked with a period (.) from subsequent statistical analysis. -Best practices: -Recode appropriate survey responses to missing. Safest: replace v1 =. if v1 == 6 -Do not drop observations with missing values. -Be careful not to recode missing values by accident.

Handling Missing Values Problematic: gen dummy1 = 0 replace dummy1 = 1 if v1 == 4 | v1==5 Safe: gen dummy1 =. replace dummy1 = 1 if v1 == 4 | v1==5 replace dummy1 = 0 if v1 <= 3 gen dummy1 = 1 if v1 == 4 | v1==5 replace dummy1 = 0 if v1 <= 3

Handling Missing Values Stata handles ‘.’ as higher than any integer value. Will recode missing observations: replace dummy1 = 1 if v1 > 6 Safe: replace dummy1 = 1 if v1 > 6 & v1 !=.

Optional: PS2 Time Saver Stata supports loops: foreach x of numlist { sum spending if year==`x', detail } foreach x of varlist gdpcap pop taxhead race* { gen log_`x’ = log(`x’) sum `x’, detail hist `x’, name(`x’) }