01/20151 EPI 5344: Survival Analysis in Epidemiology SAS Code for Cox models March 17, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.

Slides:



Advertisements
Similar presentations
When “ANYDATE” Doesn’t Mean Any Date: A Macro Solution Charlotte King, Alberta Health Services John Fleming, Alberta Health Services SAS Global Forum Paper.
Advertisements

Choice modelling - an introduction. Class experiment uEverybody loves Chocolate- fact: Of the following choices: WhiteChewyNoNuts DarkChewyNoNuts WhiteSoftNoNuts.
Path Analysis SAS/Calis. Read in the Data options formdlim='-' nodate pagno=min; TITLE 'Path Analysis, Ingram Data' ; data Ingram(type=corr); INPUT _TYPE_.
STA/BST 222 Fall 2011 Nov 22,  K-M estimate  COX MODEL  AFT MODEL.
Permanent Formats and Working Across Platforms. 32bit vs. 64 bit SAS The different versions of SAS optimize datasets and formats to work as fast as possible.
Chapter 11 Survival Analysis Part 3. 2 Considering Interactions Adapted from "Anderson" leukemia data as presented in Survival Analysis: A Self-Learning.
ADAM AKESSON’S E-PORTFOLIO For the Thinking Through Computing Learning Community.
Proportional Hazard Regression Cox Proportional Hazards Modeling (PROC PHREG)
Chapter 11 Survival Analysis Part 2. 2 Survival Analysis and Regression Combine lots of information Combine lots of information Look at several variables.
EPI 809/Spring Multiple Logistic Regression.
The Cox model in R Gardar Sveinbjörnsson, Jongkil Kim, Yongsheng Wang.
Mental Health Study Example Alachua County, Florida Purpose: Relate mental impairment to two explanatory variables, the severity of life and socioeconomic.
PROC_CODEBOOK: An Automated, General Purpose Codebook Generator
Survival Analysis: From Square One to Square Two
Biostatistics Analysis Center Center for Clinical Epidemiology and Biostatistics University of Pennsylvania School of Medicine Minimum Documentation Requirements.
STT : BIOSTATISTICS ANALYSIS Dr. Cuixian Chen Chapter 8: Fitting Parametric Regression Models STT
Bay Area SUG June SAS ® 9.2 Implications for Biotech SAS ® 9.2 Implications for Biotech Bay Area SAS User’s Group June 7 th 2010 Sarmad Pirzada,
SAS Training Dr. Daniel Fuller
1 Experimental Statistics - week 4 Chapter 8: 1-factor ANOVA models Using SAS.
STT : Biostatistics Analysis Dr. Cuixian Chen
Multiple Uses for a Simple SQL Procedure Rebecca Larsen University of South Florida.
03/20141 EPI 5344: Survival Analysis in Epidemiology Log-rank vs. Mantel-Hanzel testing Dr. N. Birkett, Department of Epidemiology & Community Medicine,
01/20151 EPI 5344: Survival Analysis in Epidemiology Maximum Likelihood Estimation: An Introduction March 10, 2015 Dr. N. Birkett, School of Epidemiology,
01/20151 EPI 5344: Survival Analysis in Epidemiology Interpretation of Models March 17, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.
Time-dependent covariates and further remarks on likelihood construction Presenter Li,Yin Nov. 24.
01/20151 EPI 5344: Survival Analysis in Epidemiology Age as time scale March 31, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.
Logistic Regression Analysis of Matched Case-Control Data- Part 2.
01/20151 EPI 5344: Survival Analysis in Epidemiology SAS code and output February 24, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.
01/20151 EPI 5344: Survival Analysis in Epidemiology Time varying covariates March 24, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.
Introduction to SAS/Graph 9.2 Ken Barz Colorado Prevention Center 22Oct2009 Ken Barz Colorado Prevention Center.
TASS Meeting Copy and Paste from Excel to SAS September 19th, 2008 Copy and Paste from Excel to SAS Dr. Arthur Tabachneck, Director Data Management with.
01/20151 EPI 5344: Survival Analysis in Epidemiology Epi Methods: why does ID involve person-time? March 10, 2015 Dr. N. Birkett, School of Epidemiology,
01/20141 EPI 5344: Survival Analysis in Epidemiology Epi Methods: why does ID involve person-time? March 13, 2014 Dr. N. Birkett, Department of Epidemiology.
01/20151 EPI 5344: Survival Analysis in Epidemiology Survival curve comparison (non-regression methods) March 3, 2015 Dr. N. Birkett, School of Epidemiology,
Applied Epidemiologic Analysis - P8400 Fall 2002
Manage Variable Lists with Macro Variables 1 for Improved Readability and Modifiability.
Summer SAS Workshop Lecture 2. Summer Summer SAS Workshop Lecture 2 I’ve got Data…how do I get started? Libname Review How do you do arithmetic.
HSRP 734: Advanced Statistical Methods July 31, 2008.
03/20131 EPI 5344: Survival Analysis in Epidemiology Risk Set Analysis Approaches April 16, 2013 Dr. N. Birkett, Department of Epidemiology & Community.
Applied Epidemiologic Analysis - P8400 Fall 2002 Lab 9 Survival Analysis Henian Chen, M.D., Ph.D.
March 28, 30 Return exam Analyses of covariance 2-way ANOVA Analyses of binary outcomes.
01/20141 EPI 5344: Survival Analysis in Epidemiology SAS code and output March 4, 2014 Dr. N. Birkett, Department of Epidemiology & Community Medicine,
Getting Superscripts into your SAS output Martha Cox Population Health Research Unit Community Health & Epidemiology Dalhousie University.
Chapter 4 concerns various SAS procedures (PROCs). Every PROC operates on: –the most recently created dataset –all the observations –all the appropriate.
01/20151 EPI 5344: Survival Analysis in Epidemiology Actuarial and Kaplan-Meier methods February 24, 2015 Dr. N. Birkett, School of Epidemiology, Public.
01/20151 EPI 5344: Survival Analysis in Epidemiology Cox regression: Introduction March 17, 2015 Dr. N. Birkett, School of Epidemiology, Public Health.
Territory Mapper Copyright 2010, TTG, Incorporated The Export utility, found under the File menu, creates a list of map units and their Hierarchy assignments.
An Introduction Katherine Nicholas & Liqiong Fan.
01/20151 EPI 5344: Survival Analysis in Epidemiology Estimating S(t) from Cox models March 24, 2015 Dr. N. Birkett, School of Epidemiology, Public Health.
01/20151 EPI 5344: Survival Analysis in Epidemiology Confounding and Effect Modification March 24, 2015 Dr. N. Birkett, School of Epidemiology, Public.
01/20151 EPI 5344: Survival Analysis in Epidemiology Quick Review from Session #1 March 3, 2015 Dr. N. Birkett, School of Epidemiology, Public Health &
Computing with SAS Software A SAS program consists of SAS statements. 1. The DATA step consists of SAS statements that define your data and create a SAS.
01/20151 EPI 5344: Survival Analysis in Epidemiology Hazard March 3, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive Medicine,
Chapter 2 Getting Data into SAS Directly enter data into SAS data sets –use the ViewTable window. You can define columns (variables) with the Column Attributes.
01/20141 EPI 5344: Survival Analysis in Epidemiology Estimating S(t) from Cox models April 1, 2014 Dr. N. Birkett, Department of Epidemiology & Community.
Better Reports Faster with PROC TABULATE John Fahey Reproductive Care Program of Nova Scotia
APA Cover Page Dr. Gustafson. What is a Cover Page? APA Manual 6 th Edition – See Manuscript Elements A cover page is the first page of your.
02/20161 EPI 5344: Survival Analysis in Epidemiology Hazard March 8, 2016 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive Medicine,
EPI 5344: Survival Analysis in Epidemiology Week 6 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive Medicine, University of Ottawa 03/2016.
SAS Certification Prep Guide Chapter 7 Creating and Applying User-Defined Formats.
03/20161 EPI 5344: Survival Analysis in Epidemiology Estimating S(t) from Cox models March 29, 2016 Dr. N. Birkett, School of Epidemiology, Public Health.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 16 & 17 By Tasha Chapman, Oregon Health Authority.
TASS Meeting Quickly Finding Project Code March 13th, 2009 A way to quickly find all of your project code Dr. Arthur Tabachneck Director, Data Management.
Beautiful PROC CONTENTS Output Using the ODS Excel Destination Suzanne Dorinski SESUG 2015 Disclaimer: Any views expressed are those of the author and.
03/20161 EPI 5344: Survival Analysis in Epidemiology Testing the Proportional Hazard Assumption April 5, 2016 Dr. N. Birkett, School of Epidemiology, Public.
Hints and Tips SAUSAG Q SORTING – NOUNIQUEKEY The NOUNIQUEKEY option on PROC SORT is a useful way in 9.3 to easily retain only those records with.
FIN 366 Week 1 Individual Assignment Individual Reflection Paper Reflect on your current knowledge of financial institutions and markets. Define financial.
طرح شبكه و سيستم ارجاع در ايران
Social Model of Health A.
If we can reduce our desire,
Presentation transcript:

01/20151 EPI 5344: Survival Analysis in Epidemiology SAS Code for Cox models March 17, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive Medicine, University of Ottawa

01/20152 SAS code (1) Cox models use Proc PHREG –I assume that you all have at least Version 9.2 of SAS Prior to this version, ‘phreg’ was more limited An experimental version (tphreg) could be used instead. BUT, I strongly encourage you to upgrade to at least SAS 9.2 –Current version is 9.4

01/20153 libname allison 'C:/allison_2010/data_sets'; PROC PHREG DATA=allison.recid; MODEL week*arrest(0)=fin age race wexp mar paro prio; RUN;

01/20154

5

6

7 title 'Ties Handling: BRESLOW'; PROC PHREG DATA=allison.recid; MODEL week*arrest(0)=fin age race wexp mar paro prio / TIES=BRESLOW; RUN; title 'Ties Handling: EFRON'; PROC PHREG DATA=allison.recid; MODEL week*arrest(0)=fin age race wexp mar paro prio / TIES=EFRON; RUN; title 'Ties Handling: EXACT’; PROC PHREG DATA=allison.recid; MODEL week*arrest(0)=fin age race wexp mar paro prio / TIES=EXACT; RUN;

01/20158 Breslow Efron Exact

01/20159 Breslow Efron Exact

01/ Breslow Efron & Exact

01/ PROC PHREG DATA=allison.recid; class fin /param=ref ref=last ; MODEL week*arrest(0)=fin age race wexp mar paro prio / TIES=EFRON; RUN; PROC PHREG DATA=allison.recid; class fin /param=effect ; MODEL week*arrest(0)=fin age race wexp mar paro prio / TIES=EFRON; RUN;

01/ Reference coding

An issue with ref coding (1) By default, SAS orders the levels of a categorical variable by the ‘format’ labels if they have been assigned. Consider: 01/ CategoryFormatOrder 1low2 2in-between1 3most3

An issue with ref coding (2) You want to use ‘level=1’ as the reference. This SAS code won’t do that: class x/param=ref ref=first; Instead, the reference will be level 2. You must use this code: class x/param=ref ref=first order=internal; 01/201514

01/ Effect coding

Three-level class variable Just for test purposes, define a 3 level variable –combines race and financial aid: 01/ RaceFinancial aidRacefin

01/ PROC PHREG DATA=njb1; class racefin /param=ref ref=last ; MODEL week*arrest(0)=racefin age / TIES=EFRON; RUN; PROC PHREG DATA=njb1; class racefin /param=effect ; MODEL week*arrest(0)=racefin age / TIES=EFRON; RUN; PROC PHREG DATA=njb1; class racefin /param=orthopoly ; MODEL week*arrest(0)=racefin age / TIES=EFRON; RUN;

01/ Reference coding

01/ Effect coding

01/ Ortho-polynomial coding

01/201521