Introduction to Statistical Computing in Clinical Research Biostatistics 212 Course director: Mark Pletcher Teaching Assistant: Lee Zane.

Slides:



Advertisements
Similar presentations
1 SESSION 5 Graphs for data analysis. 2 Objectives To be able to use STATA to produce exploratory and presentation graphs In particular Bar Charts Histograms.
Advertisements

Do files, log files, and workflow in Stata Biostatistics 212 Lecture 2.
Variables 9/10/2013. Readings Chapter 3 Proposing Explanations, Framing Hypotheses, and Making Comparisons (Pollock) (pp.48-58) Chapter 1 Introduction.
Generating new variables and manipulating data with STATA Biostatistics 212 Lecture 3.
Teaching Statistics Using Stata Software Susan Hailpern BSN MPH MS Department of Epidemiology and Population Health Albert Einstein College of Medicine.
1 Using SPSS: Descriptive Statistics Department of Operations Weatherhead School of Management.
Introduction to SPSS Allen Risley Academic Technology Services, CSUSM
INTRODUCTION TO STATA Võ Tuấn Khoa Trần Thế Trung.
Introduction to Statistical Computing in Clinical Research Biostatistics 212 Lecture 1.
Srinivasulu Rajendran Centre for the Study of Regional Development (CSRD) School of Social Sciences (SSS) Jawaharlal Nehru University (JNU) New Delhi -
Today: Run SAS programs on Saturn (UNIX tutorial) Runs SAS programs on the PC.
Ann Arbor ASA ‘Up and Running’ Series: SPSS Prepared by volunteers of the Ann Arbor Chapter of the American Statistical Association, in cooperation with.
Generating new variables and manipulating data with STATA Biostatistics 212 Lecture 3.
SADC Course in Statistics Adding a statistics package Module I3, Session 13.
A Simple Guide to Using SPSS© for Windows
Stata Introduction Sociology 229A, Class 2 Copyright © 2008 by Evan Schofer Do not copy or distribute without permission.
15a.Accessing Data: Frequencies in SPSS ®. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training.
Generating new variables and manipulating data with STATA Biostatistics 212 Session 2.
Everything I wish I had known about research design and data analysis… Statlab Workshop Fall 2006 Kyle Hood and Frank Farach.
SPSS 1: An Introduction to the Statistical Package SPSS Suzie Cro MRC Clinical Trials Unit.
SPSS Statistical Package for the Social Sciences is a statistical analysis and data management software package. SPSS can take data from almost any type.
RESEARCH HUB AT THE UNIVERSITY LIBRARIES PENN STATE UNIVERSITY TOUR OF STATISTICAL PACKAGES.
Introduction to SPSS Short Courses Last created (Feb, 2008) Kentaka Aruga.
Basic Concept of Data Coding Codes, Variables, and File Structures.
FEBRUARY, 2013 BY: ABDUL-RAUF A TRAINING WORKSHOP ON STATISTICAL AND PRESENTATIONAL SYSTEM SOFTWARE (SPSS) 18.0 WINDOWS.
Introduction to SPSS (For SPSS Version 16.0)
Day 1: Getting Started Department of Economics
 Overview of SPSS  Interface  Getting Started  Managing Data  Descriptive Statistics  Basic Analysis  Additional Resources.
Stata Workshop #1 Chiu-Hsieh (Paul) Hsu Associate Professor College of Public Health
Introduction to SAS BIO 226 – Spring Outline Windows and common rules Getting the data –The PRINT and CONTENT Procedures Manipulating the data.
Scottish Social Survey Network: Master Class 1 Data Analysis with Stata Dr Vernon Gayle and Dr Paul Lambert 23 rd January 2008, University of Stirling.
Math 3400 Computer Applications of Statistics Lecture 1 Introduction and SAS Overview.
STATA Mini Course Fall 2015 Jane Leber Herr Littauer 113 1Stata Mini Course – Spring 2015.
BMTRY 789 Introduction to SAS Programming Lecturer: Annie N. Simpson, MSc.
Organizing a project, making a table Biostatistics 212 Session 5.
SPSS Overview. The opening screen 2 The SPSS windows 3.
Introduction to MATLAB 7 Engineering 161 Engineering Practices II Joe Mixsell Spring 2010.
Generating new variables and manipulating data with STATA Biostatistics 212 Lecture 3.
Lesson 1: Exploring Access Learning Objectives After studying this lesson, you will be able to: Start Access and identify elements of the application.
Organizing a project, making a table Biostatistics 212 Lecture 7.
What is SPSS  SPSS is a program software used for statistical analysis.  Statistical Package for Social Sciences.
Introduction to SPSS. Object of the class About the windows in SPSS The basics of managing data files The basic analysis in SPSS.
Introduction to Statistical Computing in Clinical Research Biostatistics 212.
1 An Introduction to SPSS for Windows Jie Chen Ph.D. 6/4/20161.
Getting Started With Stata Session 1 Jim Anthony John Troost Department of Epidemiology Michigan State University.
STAT 3130 Statistical Methods I Lecture 1 Introduction.
Introduction to Statistical Computing in Clinical Research
Introduction to Statistical Computing in Clinical Research Biostatistics 212 Lecture 1.
Getting Started with Stata 2/11/2010 Tom Tomberlin Nealia Khan Learning Technologies Center Harvard Graduate School of Education.
STATA for S-052 M. Shane Tutwiler Your Friendly S-040 Lecturer William Johnston IT Services Harvard Graduate School of Education.
Basics of Biostatistics for Health Research Session 1 – February 7 th, 2013 Dr. Scott Patten, Professor of Epidemiology Department of Community Health.
Analysis Introduction Data files, SPSS, and Survey Statistics.
Mr. Magdi Morsi Statistician Department of Research and Studies, MOH
Introduction to MATLAB 7 Engineering 161 Engineering Practices II Joe Mixsell Spring 2012.
PSC 47410: Data Analysis Workshop  What’s the purpose of this exercise?  The workshop’s research questions:  Who supports war in America?  How consistent.
DTC Quantitative Methods Summary of some SPSS commands Weeks 1 & 2, January 2012.
16a. Accessing Data: Means in SPSS ®. 16a. Accessing Data: Means in SSPS ® 1 Prerequisites Recommended modules to complete before viewing this module.
Elementary Analysis Richard LeGates URBS 492. Univariate Analysis Distributions –SPSS Command Statistics | Summarize | Frequencies Presents label, total.
Using SPSS Note: The use of another statistical package such as Minitab is similar to using SPSS.
1 EPIB 698C Lecture 1 Instructor: Raul Cruz-Cano
SAS Programming Training Instructor:Greg Grandits TA: Textbooks:The Little SAS Book, 5th Edition Applied Statistics and the SAS Programming Language, 5.
Data Analysis using Stata workshop #4 / Kristin Bott reed.edu > K.Bott / Instructional Technology Services Reed College / Portland, OR.
Based on Learning SAS by Example: A Programmer’s Guide Chapters 1 & 2
Before the class starts: 1) login to a computer 2) start Stata 13.
IENG-385 Statistical Methods for Engineers SPSS (Statistical package for social science) LAB # 1 (An Introduction to SPSS)
By Dr. Madhukar H. Dalvi Nagindas Khandwala college
Using SPSS Note: The use of another statistical package such as Minitab is similar to using SPSS.
DEPARTMENT OF COMPUTER SCIENCE
Introduction Introduction to Stata 2016.
Statistical Analysis with
Presentation transcript:

Introduction to Statistical Computing in Clinical Research Biostatistics 212 Course director: Mark Pletcher Teaching Assistant: Lee Zane

Today... Course overview –Course objectives –Course details: grading, homework, etc –Schedule, lecture overview Where does Stata fit in? Basic data analysis with Stata

Course Objectives Learn how to use STATA Learn practical application of basic epidemiological and statistical concepts using STATA Learn how to turn raw data into presentable tables and figures

Course details Introduction to Statistical Computing - 1 unit Lectures: every other Tuesday, 2:45-4:15 Labs: every other Thursday, 2:45-3:45, 4:00-5:00 Grading: Satisfactory/Unsatisfactory Requirements: -Complete all four Labs -Satisfactory Final Project

Course details, cont Faculty Mark Pletcher, MD, MPH Lee Zane, MD

Overview of lecture topics 1- Introduction to STATA 2- Generating variables and manipulating data with STATA 3- Using Excel 4- Basic epidemiology with STATA 5- Organizing a project, making a table 6- Making a figure with STATA or Excel Lectures are no longer than necessary

Getting started with STATA Session 1

Types of software packages used in clinical research Statistical analysis packages Spreadsheets Database programs Custom applications –Cost-effectiveness analysis (TreeAge, etc) –Survey analysis (SUDAAN, etc)

Software packages for analyzing data STATA SAS S-plus, and “R” SPS-S SUDAAN Epi-Info JMP MatLab StatExact

Why use STATA? Quick start, user friendly Immediate results, response You can look at the data Menu-driven option Good graphics Log and do files Good manuals, help menu

Why NOT use STATA? SAS is used more often SAS does some things STATA does not Programming easier with S-plus Complicated data structure and manipulation easier with SAS Epi-info is even easier than STATA?

STATA – Basic functionality Hold data for you –Stata holds 1 “flat” file dataset only (.dta file) Listen to what you want –Type a command, press enter Do stuff –Statistics, data manipulation, etc Show you the results –Results window

Demo #1 Open the program Load some data Look at it Run a command

STATA - Windows Two basic windows –Command –Results Optional windows –Variable list –History of commands Other functions –Data browser/editor –Do file editor –Viewer (for log, help files, etc)

STATA - Buttons The usual – open, save, print Log-file open/suspend/close Do-file editor Browse and Edit Break

STATA - Menus Almost every command can be accessed via menu

Demo #2 Enter in some data Look at it Run a couple of commands

Menu vs. Command line Menu advantages –Look for commands you don’t know about –See the options for each command –Complex commands easier – learn syntax Command line advantages –Faster (if you know the command!) –“Closer” to the program –Only way to write “do” files Document and repeat analyses

STATA commands Describing your data describe [varlist] –Displays variable names, types, labels list [varlist] –Displays the values of all observations codebook [varlist] –Displays labels and codes for all variables

STATA commands Descriptive statistics – continuous data summarize [varlist] [, detail] –# obs, mean, SD, range –“, detail” gets you more detail (median, etc) histogram varname –Simple histogram of your variable ci [varlist] –Mean, standard error, and confidence intervals –Actually works for dichotomous variables, too.

STATA commands Descriptive statistics – categorical data tabulate [var] –Counts and percentages –(see also, table - this is very different!)

STATA commands Analytic statistics – 2 categorical variables

tabulate [var1] [var2] –“Cross-tab” –Descriptive options, row(row percentages), col(column percentages) –Statistics options, chi2(chi2 test), exact(fisher’s exact test)

Getting help Try to find the command on the pull-down menus Help menu –If you don’t know the command - Search... –If you know the command - Stata command... Try the manuals –more detail, theoretical underpinnings, etc

STATA commands Analytic statistics – 1 categorical, 1 continuous

bysort catvar: sum [contvar] –mean, SD, range of one in subgroup ttest [contvar], by([catvar]) –t-test oneway [contvar] [catvar] –ANOVA table [catvar] [, contents(mean [contvar]…) –Table of statistics

STATA commands Analytic statistics – 2 continuous

scatter [var1] [var2] –Scatterplot of the two variables pwcorr [varlist] [, sig] –Pairwise correlations between variables –“sig” option gives p-values

Demo #3 Load a STATA dataset Explore the data Describe the data Answer some simple research questions

Preview of next week… Getting data into a STATA dataset Generating new variables Labeling variables and values Log files Do files

See you on Thursday! Lab 1 due 9/28