RESEARCH WORKFLOW USING STATA How to Be an Effective Researcher CCPR Workshop.

Slides:



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

IcePro Source Code Management Source code analysis Runtime analysis Application deployment Source code generation Multi sites Click ! IcePro.
Workflows in Archie IMS Support Person: Sonja Henderson
Do files, log files, and workflow in Stata Biostatistics 212 Lecture 2.
Stata and logit recap. Topics Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with.
A Guide to Unix Using Linux Fourth Edition
Microsoft Office 2007: Introductory Computer Applications 11.
Word Lesson 8 Increasing Efficiency Using Word
1 ADVANCED MICROSOFT POWERPOINT Lesson 5 – Using Advanced Text Features Microsoft Office 2003: Advanced.
CS201 – Makefile Tutorial. A Trivial Makefile # Trivial Makefile for puzzle1.c # Ray S. Babcock, CS201, MSU-Bozeman # 1/5/05 # puzzle1: puzzle1.c gcc.
BlueJ: a very quick introduction. BlueJ BlueJ is an IDE (Interactive Development Environment). It includes –an editor, which you use to write your programs.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Stata Introduction Sociology 229A, Class 2 Copyright © 2008 by Evan Schofer Do not copy or distribute without permission.
Low level CASE: Source Code Management. Source Code Management  Also known as Configuration Management  Source Code Managers are tools that: –Archive.
Guide to Linux Installation and Administration, 2e1 Chapter 6 Using the Shell and Text Files.
Good Data Management Practices Patty Glynn 10/31/05
13-Jul-15 BlueJ: A Very Quick Introduction. BlueJ BlueJ is an IDE (Integrated Development Environment). It includes an editor, which you use to write.
Computer Science A 5: 17/2. JCreator IDE: Integrated Development Editor Features: Compile and run from editor Manage multiple files Can look up api documentation.
Pasewark & Pasewark 1 Word Lesson 8 Increasing Efficiency Using Word Microsoft Office 2007: Introductory.
CSE 326: Your Computing Environment Steve Martin Aiman Erbad.
Lecture 1: Introduction Lecture series based on the text: Essential MATLAB for Engineers and Scientists By Hahn & Valentine
VERSION 7 What’s to Come?. Workflow – Lifecycle Definition  Ability to define custom Lifecycles NEW BEING WORKED IN REVIEW WAITING FOR APPROVAL APPROVED.
SAS Workshop Lecture 1 Lecturer: Annie N. Simpson, MSc.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
Chapter 3 Mastering Editors
Lecture 4 MATLAB Windows Arithmetic Operators Maintenance Functions
Lesson 6. GCSE Computing – programming languages Candidates should be able to:  describe common tools and facilities available in an integrated development.
1 Functions 1 Parameter, 1 Return-Value 1. The problem 2. Recall the layout 3. Create the definition 4. "Flow" of data 5. Testing 6. Projects 1 and 2.
JAOIT 8.  Dreamweaver is a program for creating web pages and managing websites without having to type HTML code.  WYSIWYG – What you see is what you.
STATA Mini Course Fall 2015 Jane Leber Herr Littauer 113 1Stata Mini Course – Spring 2015.
Enabling High-Quality Printing in Web Applications
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
Erin Osborne Nishimura onish.web.unc.edu University of North Carolina at Chapel Hill.
Python – May 11 Briefing Course overview Introduction to the language Lab.
Advanced Stata Workshop FHSS Research Support Center.
Getting Started With Stata Session 1 Jim Anthony John Troost Department of Epidemiology Michigan State University.
Creating and Managing File Systems. Module 5 – Creating and Managing File Systems ♦ Overview This module deals with the structure of the file system,
I Power Higher Computing Software Development Development Languages and Environments.
”Java and JMLfor Dummies” The Java source code is written in a text file using your favourite editor (Notepad) and is saved with extension.java. Be careful.
1 Stephen L. DesJardins Professor Center for the Study of Higher and Postsecondary Education School of Education and Professor, Gerald R. Ford School of.
Introduction to Matlab  Matlab is a software package for technical computation.  Matlab allows you to solve many numerical problems including - arrays.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Word 2003 The Word Screen. Word 2003 Screen File Menu –Holds the options for creating a new document, opening a document, saving a document, printing.
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
Ten Commandments of Word Processing. I. Thou shall not use spaces n Put no more than two spaces together. n Use the key to line things up. n Better yet,
Today Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation – GOF.
Reuse text and other document parts: Introducing building blocks Swap, format, and remove building blocks You’ve added a cover page to your document. What.
Chapter – 8 Software Tools.
Topics Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation –
Making a great Project 2 OCR 1994/2360. Testing The point of testing is to make sure that it does what it set out to do Test to see that the user requirements.
As a general rule you should be using multiple languages these days (except for Java)
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
With the support of the LPP programme of the European Union 1 This project has been funded with support from the European Commission. This publication.
Topics Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with Stata – Estimation –
Steps For Quick Formatting a Dell Computer. Steps-1.
Introduction to computers
Linux.
INFO 7470 Elements of Replicable Science
Essentials of HTML.
ECONOMETRICS ii – spring 2018
Essentials of HTML.
Lecture 1: Introduction
CSCI The UNIX System Shell History and Directory Stacks
The Linux Command Line Chapter 24
IBM Workload Automation
BlueJ: a very quick introduction
Stata Basic Course Lab 2.
Scripts In Matlab.
One Set of Styles Connected to As Many Pages as You Want!!!
The Linux Command Line Chapter 24
Presentation transcript:

RESEARCH WORKFLOW USING STATA How to Be an Effective Researcher CCPR Workshop

THE WORKFLOW OF DATA ANALYSIS USING STATA J. Scott Long

THREE WAYS TO EXECUTE COMMANDS

DO-FILES

ADVANTAGES OF USING DO-FILES 1. You have a record of the commands you ran. You can rerun them in the future to replicate your results You can quickly modify your code 2. You can use the features of the text editor i.e. copy/paste, find and replace, select all

TWO RULES OF USING DO-FILES 1. Do-files must be robust Robust do-files produce exactly the same result when run at a later time or on another computer 2. Do-files must be legible Legible do-files are documented and formatted so that it is easy to understand what is being done

MAKING DO-FILES ROBUST Robust do-files are self-contained

MAKING DO-FILES ROBUST Exclude directory information

MAKING DO-FILES ROBUST Use version control Include seeds for random numbers

MAKING DO-FILES LEGIBLE Legible do-files are internally documented and formatted Use comments!!

MAKING DO-FILES LEGIBLE Use alignment and indentation

MAKING DO-FILES LEGIBLE Limit your abbreviations

SAVING YOUR SESSION TO A LOG