Zhongmin Li and Geeta Mahendra

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

TI – 83 Plus1 A Quick Reference Presentation for AMSTI Year 1 Training.
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Chapters 1 & 2 Theorem & Postulate Review Answers
Describing Data: Frequency Distributions and Graphic Presentation
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
CCGPS Coordinate Algebra
Coordinate Plane Practice The following presentation provides practice in two skillsThe following presentation provides practice in two skills –Graphing.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
ADDING INTEGERS 1. POS. + POS. = POS. 2. NEG. + NEG. = NEG. 3. POS. + NEG. OR NEG. + POS. SUBTRACT TAKE SIGN OF BIGGER ABSOLUTE VALUE.
MULTIPLICATION EQUATIONS 1. SOLVE FOR X 3. WHAT EVER YOU DO TO ONE SIDE YOU HAVE TO DO TO THE OTHER 2. DIVIDE BY THE NUMBER IN FRONT OF THE VARIABLE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
Haas MFE SAS Workshop Lecture 3:
STATISTICAL INFERENCE ABOUT MEANS AND PROPORTIONS WITH TWO POPULATIONS
Box and Whiskers with Outliers. Outlier…… An extremely high or an extremely low value in the data set when compared with the rest of the values. The IQR.
Chapter 14 Software Testing Techniques - Testing fundamentals - White-box testing - Black-box testing - Object-oriented testing methods (Source: Pressman,
LOGO Regression Analysis Lecturer: Dr. Bo Yuan
CHAPTER 6 Introduction to Graphing and Statistics Slide 2Copyright 2012, 2008, 2004, 2000 Pearson Education, Inc. 6.1Tables and Pictographs 6.2Bar Graphs.
© S Haughton more than 3?
Chapter 4 Inference About Process Quality
3/2003 Rev 1 I.2.12 – slide 1 of 18 Part I Review of Fundamentals Module 2Basic Physics and Mathematics Used in Radiation Protection Session 12Statistics.
National Center for Health Statistics Data Online Query System Overview
Squares and Square Root WALK. Solve each problem REVIEW:
Hours Listening To Music In A Week! David Burgueño, Nestor Garcia, Rodrigo Martinez.
Past Tense Probe. Past Tense Probe Past Tense Probe – Practice 1.
Module 16: One-sample t-tests and Confidence Intervals
Addition 1’s to 20.
25 seconds left…...
Test B, 100 Subtraction Facts
Week 1.
Statistical Inferences Based on Two Samples
Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 15 2 k Factorial Experiments and Fractions.
Using ODS Regions to Create Custom Reports Kate Morrow, M.S. Statistician Vermont Oxford Network, Burlington, VT.
Fundamental Features of Graphs All graphs have two, clearly-labeled axes that are drawn at a right angle. –The horizontal axis is the abscissa, or X-axis.
Data Freshman Clinic II. Overview n Populations and Samples n Presentation n Tables and Figures n Central Tendency n Variability n Confidence Intervals.
AP STATISTICS LESSON 3 – 1 EXAMINING RELATIONSHIPS SCATTER PLOTS.
Inference for regression - Simple linear regression
Chapter 2 Describing Data with Numerical Measurements General Objectives: Graphs are extremely useful for the visual description of a data set. However,
 FREQUENCY DISTRIBUTION TABLES  FREQUENCY DISTRIBUTION GRAPHS.
POPULATION DYNAMICS Required background knowledge:
Quantitative Skills 1: Graphing
Tips & Tricks MASUG02/18/2005. Multiple Graphs on One Page.
Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
A leading global CRO Systematically Reordering Axis in SAS Graph Brian Shen Web:
Statistical Graphics for the SAS System Computing for Research I 01/29/2014 Nathaniel L Baker.
Essential Statistics Chapter 11 Picturing Distributions with Graphs.
Lecture 3 Topic - Descriptive Procedures Programs 3-4 LSB 4:1-4.4; 4:9:4:11; 8:1-8:5; 5:1-5.2.
Effective SAS greplay’ing and how to avoid stretching By David Mottershead Senior Programmer, Quanticate.
Graphing Basics. Creating a graph Draw the y-axis on the vertical axis and the X-axis on the horizontal one Label what variable is on each of the axis.
PROC GPLOT GPLOT is used to make two dimensional scatter-plots. General Syntax: proc gplot data=data-set options; plot y-variable*x-variable/options; run;
How to Read, Develop, and Interpret GRAPHS! OBSERVATIONS: often are recorded in a data table. We INTERPRET our data table by making INFERENCES and PREDICTIONS.
MASUG September 15, Agenda  Guest Introductions  John Boling – SAS inSchool  Tim Garton – Health Forecasts  Announcements  Tips & Tricks 
1 Statistical Software Programming. STAT 6360 –Statistical Software Programming SAS Graphics SAS has two main facilities for producing graphics: 1.ODS.
Data Analysis, Presentation, and Statistics
GRAPH Definition: A PICTORIAL REPRESENTATION OF INFORMATION RECORDED IN A DATA TABLE. USED TO SHOW A RELATIONSHIP BETWEEN TWO OR MORE FACTORS.
SAS ® is a very powerful tool when producing Graphics. A single graphical data step can easily create a Kaplan Meier Plot, but there is no single graphical.
SAS/GRAPH The Basics. Today’s Topics GOPTIONS GPLOT GCHART GCONTOUR G3D.
Introduction to SAS ODS Graphics September 16, 2015 Rocio Lopez.
Insert name of presentation on Master Slide HCAI Charts HCAI Information for Action, November 2010 Presenter: Mari Morgan, Wendy Harrison.
Graphs with SPSS Aravinda Guntupalli. Bar charts  Bar Charts are used for graphical representation of Nominal and Ordinal data  Height of the bar is.
Chapter 8: ODS Graphics ODS graphics were not available prior to SAS 9.2 They have been implemented across a wide range of procedures Functionality isn’t.
INTRODUCTION TO SGPLOT Zahir Raihan OVERVIEW  ODS Graphics  SGPLOT overview  Plot Content  High value plot statements  High value plot options 
Computing for Research I 01/26/2011 N. Baker
Using Simulation to Evaluate Statistical Techniques.
DESIGN OF EXPERIMENT (DOE)
Presentation transcript:

A SAS Macro for Displaying Institutional Risk-adjusted Performance: Forest vs. Funnel Plots Zhongmin Li and Geeta Mahendra University of California Davis Medical Center May 20, 2014

Overview Introduction Data preparation SAS Macro for Forest vs. Funnel plots Discussion

Introduction Both forest plot and funnel plot were initially developed for presenting results of meta-analysis Forest plot: an intuitive, convenient and easily understood display of mean values and their confidence intervals for comparisons Funnel plots: no spurious ranking; the eye is naturally drawn to important points that lie outside the funnel

Data Preparation 20 observations; one per institution Variables: Institutional ID, total number of cases admitted, number of adverse events, observed rate of adverse events, Expeted rate of adverse event, Risk adjusted event rate and the lower and upper limits of 95% confidence interval of the risk adjusted event rate.

Sample Data

Forest Plot (1) %MACRO ForestPlot (Datain, PopStateRate); … DATA Anno; LENGTH function style color $8; RETAIN xsys ysys '2' when 'a'; SET &Datain; **Drawing horizontal line for CI of risk-adjusted rate; FUNCTION='move'; xsys='2'; ysys='2'; yc=hospname; x=LL_RAMR; color='black'; output; FUNCTION='draw'; x=UL_RAMR; color='black'; size=1; output;

Forest Plot (2) **Drawing tick lines at both ends of the lower and the upper limits Function='move';xsys='2'; ysys='2';yc=hospname; x=ll_RAMR; color='black'; output; Function='draw';x=ll_RAMR; ysys='9'; y=+1; size=1; output; Function='draw';x=ll_RAMR; y=-2; size=1;output; Function='move';xsys='2'; ysys='2'; yc=hospname; x=Ul_RAMR; color='black'; output; Function='draw';x=Ul_RAMR; ysys='9'; y=+1; size=1; output; Function='draw';x=Ul_RAMR; y=-2; size=1; output; RUN;

Forest Plot (3) **Create Y axis values in ascending order of the risk adjusted event rate for the graph. PROC SQL is used to create a macro variable HOSP which is then used to order the Y axis labels; PROC SQL noprint; select quote(hospname) into :hosp separated by ' ' from &datain; Quit; Axis1 label=none minor=none offset=(2,2) order=(&hosp); Axis2 order=(0 to 18 by 2) label=('Risk Adjusted Event Rate') minor=none; Symbol1 interpol=none color=black value=dot height=1.5;

Forest Plot (4) **Use GPLOT to create the forest plot by plotting hospital name on the Y axis and risk adjusted event rate on the X axis. A vertical reference line for the state population rate is added using the HREF option. PROC GPLOT DATA=&datain; Plot Hospname*adjrate / annotate=anno nolegend Vaxis=axis1 Haxis=axis2 Href = &PopStateRate LHref = 2; Run;   %MEND ForestPlot;

Forest Plot: Results

Funnel Plot (1) %MACRO FunnelPlot(Datain, MeanProcRate, Sampsize); … **Use SAS IML to generate 95% and 99.8% confidence bands around the average of mean risk adjusted event rate. PROC iml; USE Rpt; READ all var {hospname Voln nobs adjrate se}; CLOSE rpt;

Funnel Plot (2) **Create IML module FunnelStat for matrixes. START FunnelStat(x); mean = x[:,]; countn = j(1, ncol(x)); do i = 1 to ncol(x); countn[i] = sum(x[,i]^=.); end; FunnelStat = (x-mean)[##,] / (countn-1); RETURN ( FunnelStat ); FINISH;

Funnel Plot (3) **Calculate overall mean, variance and the lower and upper limits for 95% and 99.8% confidence bands for mean risk adjusted event rate; y = adjrate[:]; s = sqrt(FunnelStat(adjrate)); n = T( do(1, &sampsize, 1) ); p = {0.001 0.025 0.975 0.999}; /** lower/upper limits **/ z = quantile("normal", p); limits = y + s / sqrt(n) * z;

Funnel Plot (4) **Create a dataset which has all the variables needed to create the funnel plot by combining confidence limits with the rest of the data. d = n || limits; VARNAMES = {"N" "L998" "L95" "U95" "U998" }; CREATE Bounds from d[c=varNames]; APPEND from d; CLOSE Bounds; QUIT; **If statement is used to label only the outliers. DATA plotdata; SET Temp Bounds; outlier=Hospname; if hospname not in ('Unit#8','Unit#15') then outlier=' ';

Funnel Plot (5) **Using SGPLOT procedure. PROC SGPLOT DATA=plotdata ; SCATTER x=voln y=adjrate /datalabel=Outlier ; REFLINE &MeanProcRate / axis=y; BAND x=N lower=l95 upper=U95 / nofill name="CI95" LegendLabel="95% limits" lineattrs=(color=gray); … XAXIS label="Procedure Volume Category" fitpolicy=rotate grid values=(1 to 10 by 1) integer ; YAXIS label="Mean Risk-adjusted Event Rate"; KEYLEGEND "CI998" "CI95" / location=inside position=TopRight across=1; %MEND FunnelPlot;

Funnel Plot: Results

Discussion Both Forest and Funnel plots can be used to rate institutions based on their performance. Forest plots are used more for ranking purposes; Funnel plots are a simple way to compare group means to overall average without ranking Funnel plots use the point estimates which could be caused by a chance. Primary audiences for funnel plots are more likely to be researchers and analysts than senior decision makers.

Comments? Please contact: Zhongmin Li Zhongmin.Li@ucdmc.ucdavis.edu Geeta Mahendra Geeta.Mahendra@ucdmc.ucdavis.edu