Basic Medical Statistics Course

Similar documents
Basic Medical Statistics Course

Brief Guide on Using SPSS 10.0

IBMSPSSSTATL1P: IBM SPSS Statistics Level 1

Research Methods for Business and Management. Session 8a- Analyzing Quantitative Data- using SPSS 16 Andre Samuel

SPSS. (Statistical Packages for the Social Sciences)

Crash Course in Statistics

Select Cases. Select Cases GRAPHS. The Select Cases command excludes from further. selection criteria. Select Use filter variables

1. Basic Steps for Data Analysis Data Editor. 2.4.To create a new SPSS file

Intermediate SPSS. If you have an SPSS dataset (*.sav), you can open it in the following way:

SPSS QM II. SPSS Manual Quantitative methods II (7.5hp) SHORT INSTRUCTIONS BE CAREFUL

MHPE 494: Data Analysis. Welcome! The Analytic Process

Dr Wan Nor Arifin Unit of Biostatistics and Research Methodology, Universiti Sains Malaysia.

Applied Regression Modeling: A Business Approach

Opening a Data File in SPSS. Defining Variables in SPSS

Introduction (SPSS) Opening SPSS Start All Programs SPSS Inc SPSS 21. SPSS Menus

User Services Spring 2008 OBJECTIVES Introduction Getting Help Instructors

Statistical Analysis Using SPSS for Windows Getting Started (Ver. 2018/10/30) The numbers of figures in the SPSS_screenshot.pptx are shown in red.

Digital literacy training

IENG484 Quality Engineering Lab 1 RESEARCH ASSISTANT SHADI BOLOUKIFAR

Applied Regression Modeling: A Business Approach

Surviving SPSS.

SPSS for Survey Analysis

TYPES OF VARIABLES, STRUCTURE OF DATASETS, AND BASIC STATA LAYOUT

Introductions Overview of SPSS

The basic arrangement of numeric data is called an ARRAY. Array is the derived data from fundamental data Example :- To store marks of 50 student

INTRODUCTION TO SPSS. Anne Schad Bergsaker 13. September 2018

Statistical Package for the Social Sciences INTRODUCTION TO SPSS SPSS for Windows Version 16.0: Its first version in 1968 In 1975.

2.1 Objectives. Math Chapter 2. Chapter 2. Variable. Categorical Variable EXPLORING DATA WITH GRAPHS AND NUMERICAL SUMMARIES

SPSS Statistics 19.0 Fix Pack 2 Fix List Release notes Abstract Content Number Description

- 1 - Fig. A5.1 Missing value analysis dialog box

BIOSTATISTICS LABORATORY PART 1: INTRODUCTION TO DATA ANALYIS WITH STATA: EXPLORING AND SUMMARIZING DATA

SPSS TRAINING SPSS VIEWS

WELCOME! Lecture 3 Thommy Perlinger

AND NUMERICAL SUMMARIES. Chapter 2

Example how not to do it: JMP in a nutshell 1 HR, 17 Apr Subject Gender Condition Turn Reactiontime. A1 male filler

Surviving SPSS.

13-FEB :53:53. /Users/yizheng/Dropbo x (ASU) /Work/Alias/ASU/Course /COE502/Labs/sample_ work/lab2/fl_student_s urvey_modified.

Frances Provan i #)# #%'

Right-click on whatever it is you are trying to change Get help about the screen you are on Help Help Get help interpreting a table

Introduction to SPSS Edward A. Greenberg, PhD

UNIT 4. Research Methods in Business

LSP 121. LSP 121 Math and Tech Literacy II. Topics. Quartiles. Intro to Statistics. More Descriptive Statistics

Overview. Frequency Distributions. Chapter 2 Summarizing & Graphing Data. Descriptive Statistics. Inferential Statistics. Frequency Distribution

CHAPTER 1. Introduction. Statistics: Statistics is the science of collecting, organizing, analyzing, presenting and interpreting data.

Preparing for Data Analysis

3 Graphical Displays of Data

Tabular & Graphical Presentation of data

Spell out your full name (first, middle and last)

Acquisition Description Exploration Examination Understanding what data is collected. Characterizing properties of data.

Statistics Lecture 6. Looking at data one variable

Special Review Section. Copyright 2014 Pearson Education, Inc.

FREQUENCIES VARIABLES=CAT_MSDS /STATISTICS=STDDEV MINIMUM MAXIMUM MEAN MEDIAN MODE /ORDER=ANALYSIS.

Math 120 Introduction to Statistics Mr. Toner s Lecture Notes 3.1 Measures of Central Tendency

This chapter will show how to organize data and then construct appropriate graphs to represent the data in a concise, easy-to-understand form.

Statistical Methods. Instructor: Lingsong Zhang. Any questions, ask me during the office hour, or me, I will answer promptly.

3 Graphical Displays of Data

Quick Start Guide Jacob Stolk PhD Simone Stolk MPH November 2018

STA 570 Spring Lecture 5 Tuesday, Feb 1

At the end of the chapter, you will learn to: Present data in textual form. Construct different types of table and graphs

Univariate Statistics Summary

Visualizing Data: Freq. Tables, Histograms

Chapter 6: DESCRIPTIVE STATISTICS

Descriptive Statistics By

Ivy s Business Analytics Foundation Certification Details (Module I + II+ III + IV + V)

CHAPTER 2 DESCRIPTIVE STATISTICS

Preparing for Data Analysis

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

PSS718 - Data Mining

Data can be in the form of numbers, words, measurements, observations or even just descriptions of things.

Organizing and Summarizing Data

Chapter 2 Describing, Exploring, and Comparing Data

LAB 1 INSTRUCTIONS DESCRIBING AND DISPLAYING DATA

STA 490H1S Initial Examination of Data

MATH 117 Statistical Methods for Management I Chapter Two

1 Introduction. 1.1 What is Statistics?

12. A(n) is the number of times an item or number occurs in a data set.

IAT 355 Visual Analytics. Data and Statistical Models. Lyn Bartram

SPSS Instructions and Guidelines PSCI 2300 Intro to Political Science Research Dr. Paul Hensel Last updated 10 March 2018

DEPARTMENT OF HEALTH AND HUMAN SCIENCES HS900 RESEARCH METHODS

Creating a data file and entering data

Can You Make A Box And Whisker Plot In Excel 2007

Standard Safety Visualization Set-up Using Spotfire

SPSS: AN OVERVIEW. V.K. Bhatia Indian Agricultural Statistics Research Institute, New Delhi

Chapter2 Description of samples and populations. 2.1 Introduction.

Using SPSS with The Fundamentals of Political Science Research

Chapter 2: Descriptive Statistics

International Graduate School of Genetic and Molecular Epidemiology (GAME) Computing Notes and Introduction to Stata

This document is designed to get you started with using R

Mr. Kongmany Chaleunvong. GFMER - WHO - UNFPA - LAO PDR Training Course in Reproductive Health Research Vientiane, 22 October 2009

Summarising Data. Mark Lunt 09/10/2018. Arthritis Research UK Epidemiology Unit University of Manchester

Software for glucose data management. Manual

INTRODUCTORY SPSS. Dr Feroz Mahomed Swalaha x2689

Math 227 EXCEL / MEGASTAT Guide

Forfattere Intro to SPSS 19.0 Description

CS130 Software Tools. Fall 2010 Intro to SPSS and Data Handling

Introduction to Mplus

Introduction to StatsDirect, 15/03/2017 1

QUESTION PORTOFOLIO FOR THE GRID TEST MVE

Chapter 3: Data Description - Part 3. Homework: Exercises 1-21 odd, odd, odd, 107, 109, 118, 119, 120, odd

Slides by. John Loucks. St. Edward s University. Slide South-Western, a part of Cengage Learning

Transcription:

Basic Medical Statistics Course S0 SPSS Intro November 2013 Wilma Heemsbergen w.heemsbergen@nki.nl 1 13.00 ~ 15.30 Database (20 min) SPSS (40 min) Short break Exercise (60 min) This Afternoon During the course there will be several practicals. Answers will be provided afterwards, including SPSS syntax. 2

Research General research question Objective / hypothesis Study design Data collection Database Data analysis Discussion / conclusions A valid data analysis can only take place when all the previous steps were performed adequately 3 Database Example 4

Types of data Type Continous Categorical - binary -ordinal - nominal Text Date Example Age Treatment Arm T stage Hospital Remarks Date of Birth 5 Types of data: special cases Identifiers. A unique code / number to identify an individual patient. Key variable (for merging data, patient file research, etc ). Censored data. Most common is right-censored: event will occur, but we do not know when, e.g. death. Interval-censored: the event occurred in a certain time interval, but we do not know exactly when. Derived data. E.g.: age at start of treatment, derived from birth date and treatment date. Imputed data. A way of handling missing data. E.g. estimation of start treatment, based on blood values. Missing data. Missing data are often coded as missing. Beware of these values when you start analyzing data (e.g. 99 = missing). 6

Date and Time Variables To calculate the time between two dates, you can subtract dates from each other. E.g.: (date start therapy) (birth date) = (age at start therapy). Beware of the unit of the calculated age. In SPSS, it will be calculated in seconds (using the option compute ). Age at start (in days) = ( (date start) (birth date) ) / ( 60*60*24) Age at start (in years) = ( (date start) (birth date) ) / ( 60*60*24*365.25) SPSS also contains a date and time wizard, in which you can indicate the desired unit for calculations. 7 Code / Labels Two or more categories (not ordinal) Two: male, female 1, 2 or 0,1 More: Hospital A, B, C, D Whatever is convenient e.g. 1,2,3,4 or 11,17,22,33 Categories, ordinal Age: <40,40-60,>60 1, 2, 3 Risk factor: present, not present Prior surgery: yes, no 1, 0 8

Building a Database - Keep a short paper file per patient (study forms). - Enter original data preferably in a database environment (not Excel). - Construct a code book (next slide). - Keep your original data well-organized. - Save + backup original data, apart from derived data. - Include in your data file name: date, version, ref to study. - Use a text field to comment (and update) for every patient (e.g.: emigrated, lost to follow-up, no visit at 2 years follow-up ) - Check and double-check the data. 9 Code Book Define each variable (previous to data entry) in a code book: name of variables, type (e.g. numerical, text, date), length, decimals, labels / extended variable name (e.g. date of diagnosis in referring hospital ), values (e.g. 1=male, 2=female), missing values: list of defined missing values (e.g. 99=unknown). The code book can also be used to construct an electronic data form for data entry (to minimize errors). Variable names should be reasonably short + well-organized, also to avoid problems when exported to other programs. 10

Electronic Data Form Example of simple data entry form in ACCESS 11 Error Checking Range/outliers: are outliers true values, or errors? Missings: are missing values really missing? Dates: are dates within the expected range? Queries (logical rules): E.g. stop date must be between x and y weeks after start date. 12

Describing continuous data - Descriptives (mean, sd, range, percentiles, min, max, ) - Histogram (distribution of data) - Box plot (range / variation, outliers) - Stem-and-Leaf plot (range, outliers, exact values) - Scatter (2 continuous variables) 13 Describing categ/ordinal data Data can be described in absolute values (numbers) and/or in relative values (%). Data can be described with or without missing values. - Frequency tables - Crosstabs (at least 2 variables) - Graphs: bars, pie charts, 14

Handling & Describing Data in SPSS SPSS - SPSS windows: Data, Variables, Output, Syntax. - Import / export data, output files, syntax files. - Transform data (compute, recode,...). - Describing data (tables, graphs, ). SPSS can import/export other formats (e.g. excel). 16

Windows in SPSS Open windows are shown in the tab Windows To open new windows (data, syntax, output), go to (menu): File new 17 Import Data in SPSS Using the paste button, corresponding syntax is pasted (ready to run). *.dbf, *.xls, *txt,/ 18

Menu: file open - data Get Data Use the paste button to get the syntax in the syntax window It is also possible to start with opening a syntax file, which will read / open the data (without using the menu). To run: (select and) hit the run button. GET FILE='U:\data_statcursus\trial_rt.sav'. DATASET NAME DataSet1 WINDOW=FRONT. 19 Variable View 20 21

Data File Information 21 Data File Information 22

Compute Menu: transform - compute DATASET ACTIVATE DataSet1. COMPUTE duur_rt=tend - tstart. EXECUTE. 23 Displaying Data (Graph) 24

Histogram Menu: Graphs - Legacy dialogs - Histogram GRAPH /HISTOGRAM=duur_rt. 25 Reports, Describing 26

Case Summaries Menu: analyse reports case summaries overview, error checking, summary 27 Descriptives Menu: analyse - descriptive statistics - descriptives DESCRIPTIVES VARIABLES=age /STATISTICS=MEAN STDDEV MIN MAX. 28

Recode Menu: transform - recode RECODE age (45 thru 69.99=0) (70 thru 90=1) INTO age70. EXECUTE. 29 Syntax 30

Data List Free Analyzing data without creating a data table first: data list free / naam1, naam 2, n. begin data. 1 1 18 0 1 162 1 0 21 0 0 159 end data. weight by n. 31 Other Options (exercise) 32

Merge Data Menu: Data Merge Files Add Cases / Add Variables 33 Split File / Selection Cases Menu: Data - Split File Data - Select Cases 34

35 Save Subset There is a possibility to save a subset of the variables: save as, option variables Menu: Data Save as 36

Crosstabs Menu: Analyse - Descriptive statistics - Crosstabs 37 38 Explore Menu: Analyse - Descriptive statistics - Explore 38 39

Explore: factor (by group) Menu: analyse - descriptive statistics - explore EXAMINE VARIABLES=age BY arm /PLOT BOXPLOT STEMLEAF /COMPARE GROUPS /STATISTICS DESCRIPTIVES /CINTERVAL 95 /MISSING LISTWISE /NOTOTAL. (= default, you can change it) 39 40 + stem-and-leaf plot + boxplot in output 40 41

Stem-and-Leaf A Stem-and-Leaf diagram is a special type of histogram. First: stem and leaf must be defined. Example Data: 23, 26, 26, 27, 28, 30, 31, 45, 45, 45 Typically, a Stem-and-Leaf plot looks then like this (with stem unit of 10 and leaf unit of 1). 2 3 6 6 7 8 (stem = 2, leafs are 3 6 6 7 8) 3 0 1 4 5 5 5 SPSS: a Stem-and-Leaf plot is generated when the option explore is used (descriptive statistics). 41 42 Box Plot Visualizes: - distribution (normal? skew?) - full range of variation - outliers SPSS: a Box plot is generated when the option explore is used (descriptive statistics). 42 43

Scatter Menu: Graphs Legacy Dialogs Scatter/Dot 43 44 Pie Chart & Freq Table Variable: cause of death (COD) - display missing data, or not? - numbers or %? Menu: Graphs Legacy Dialogs Pie Charts (option: summaries for groups of cases) 44 45

SPSS Help There are helpful SPSS manuals / guides available at the internet. http://www.sussex.ac.uk/its/pdfs/spss_brief_guide_20.pdf http://www.ats.ucla.edu/stat/spss/modules/ http://www.onderzoekenspss.nl/index.html/ (english) (english) (dutch) SPSS has an extensive Help Function. Demo on youtube about types of data : http://www.youtube.com/watch?v=hzxnzfnt5v8&nr=1&feature=endscreen 45