Introducing Two-Way and Three-Way Interactions into the Cox Proportional Hazards Model Using SAS

Similar documents
Transitions in Depressive Symptoms After 10 Years of Follow-up Using PROC LTA

Transitions in Depressive Symptoms After 10 Years of Follow-up Using PROC LTA in SAS and Mplus

Severe Psychiatric Disorders in Mid-Life and Risk of Dementia in Late- Life (Age Years): A Population Based Case-Control Study

Depression and chronic medical conditions are commonly

Objectives. 6.3, 6.4 Quantifying the quality of hypothesis tests. Type I and II errors. Power of a test. Cautions about significance tests

Polymorbidity in diabetes in older people: consequences for care and vocational training

Do People s First Names Match Their Faces?

King s Research Portal

The Application of a Cognitive Diagnosis Model via an. Analysis of a Large-Scale Assessment and a. Computerized Adaptive Testing Administration

Getting to Goal: Managed Care Strategies for Children, Adolescents, and Adults With ADHD

Gender Differences and Predictors of Work Hours in a Sample of Ontario Dentists. Cite this as: J Can Dent Assoc 2016;82:g26

Research Article ABSTRACT. Amanda Myhren-Bennett College of Nursing, University of South Carolina, Columbia, SC 29208, USA

Randomized controlled trials: who fails run-in?

Estimating shared copy number aberrations for array CGH data: the linear-median method

Automatic System for Retinal Disease Screening

Dental X-rays and Risk of Meningioma: Anatomy of a Case-Control Study

RISK FACTORS FOR NOCTURIA IN TAIWANESE WOMEN AGED YEARS

carinzz prophylactic regimens

Constipation in adults with neurofibromatosis type 1

Internet-based relapse prevention for anorexia nervosa: nine- month follow-up

Differences in the local and national prevalences of chronic kidney disease based on annual health check program data

Khalida Ismail, 1 Andy Sloggett, 2 and Bianca De Stavola 3

Treating Patients with HIV and Hepatitis B and C Infections: Croatian Dental Students Knowledge, Attitudes, and Risk Perceptions

Remaining Useful Life Prediction of Rolling Element Bearings Based On Health State Assessment

Asthma Prescribing Practices of Government and Private Doctors in Malaysia - A Nationwide Questionnaire Survey

Min Kyung Hyun. 1. Introduction. 2. Methods

Presymptomatic Risk Assessment for Chronic Non- Communicable Diseases

Journal of the American College of Cardiology Vol. 38, No. 1, by the American College of Cardiology ISSN /01/$20.

Author's personal copy

An Intuitive Approach to Understanding the Attributable Fraction of Disease Due to a Risk Factor: The Case of Smoking

Comparing Clinical Outcomes in High-Volume and Low-Volume Off-Pump Coronary Bypass Operation Programs

Medical Center, Van der Boechorststraat 7, 1081 BT Amsterdam, The Netherlands

Comparative analysis of fetal electrocardiogram (ECG) extraction techniques using system simulation

Functioning and depression in patients under cognitivebehavioral

A Note on False Positives and Power in G 3 E Modelling of Twin Data

Regret theory and risk attitudes

GLOSSARY of Terms- Deaf, DeafBlind, and Hard of Hearing (alphabetized)

SIMULATIONS OF ERROR PROPAGATION FOR PRIORITIZING DATA ACCURACY IMPROVEMENT EFFORTS (Research-in-progress)

Outcomes following first-episode psychosis Why we should intervene early in all ages, not only in youth

Relating mean blood glucose and glucose variability to the risk of multiple episodes of hypoglycaemia in type 1 diabetes

Decision Analysis Rates, Proportions, and Odds Decision Table Statistics Receiver Operating Characteristic (ROC) Analysis

Comparison of Water Seal and Suction After Pulmonary Lobectomy: A Prospective, Randomized Trial

Surgical resection is the primary curative treatment modality

The Mississippi Social Climate of Tobacco Control,

Chapter 13 Mental Health

Risk Scores Do Not Predict High Mortality After Coronary Artery Bypass Surgery in the Presence of Diastolic Dysfunction

Sampling methods Simple random samples (used to avoid a bias in the sample)

Cardiology & Vascular Research

Family Dysfunction Differentially Affects Alcohol and Methamphetamine Dependence: A View from the Addiction Severity Index in Japan

FOLLOW-UP OF A CARDIOVASCULAR PREVENTION CAMPAIGN

Additive Beneficial Effects of Beta-Blockers to Angiotensin-Converting Enzyme Inhibitors in the Survival and Ventricular Enlargement (SAVE) Study

Inconsistencies of echocardiographic criteria for the grading of aortic valve stenosis

Acute Myocardial Infarction Mortality in Comparison with Lung and Bladder Cancer Mortality in Arsenic-exposed Region II of Chile from 1950 to 2000

Exploratory Study of the Clinical Characteristics of Adolescent Girls with a History of Physical or Sexual Abuse Consulting in a Mood Disorder Clinic

Ovarian Cancer Survival McGuire et al. Survival in Epithelial Ovarian Cancer Patients with Prior Breast Cancer

The majority of ad exposure occurs under incidental conditions where

Isoflurane and postoperative respiratory depression following laparoscopic surgery: A retrospective propensity-matched analysis

Migraine headache is one of the most debilitating RECONSTRUCTIVE

The vignette, task, requirement, and option (VITRO) analyses approach to operational concept development

Cost Advantages of an Ad Hoc Angioplasty Strategy

Acute Myocardial Infarction Mortality in Comparison with Lung and Bladder Cancer Mortality in Arsenic-exposed Region II of Chile from 1950 to 2000

Title: Correlates of quality of life of overweight and obese patients: a pharmacy-based cross-sectional survey

Child attention to pain and pain tolerance are dependent upon anxiety and attention

Journal of the American College of Cardiology Vol. 35, No. 4, by the American College of Cardiology ISSN /00/$20.

Comparative Study between Different Pulmonary Rehabilitation Programs in Patients Undergoing Coronary Artery Bypass Graft

The Mississippi Social Climate of Tobacco Control,

Effect of training frequency on the learning curve on the da Vinci Skills Simulator

The meaning of Beta: background and applicability of the target reliability index for normal conditions to structural fire engineering

Bayesian design using adult data to augment pediatric trials

The Relationship Between Chronic Atrial Fibrillation and Reduced Pulmonary Function in Cases of Preserved Left Ventricular Systolic Function

Quadriceps muscles vastus medialis obliques, rectus femoris and vastus lateralis compared via electromyogram bicoherence analysis

Research Article Deep Learning Based Syndrome Diagnosis of Chronic Gastritis

An assessment of diabetes-dependent quality of life (ADDQoL) in women and men in Poland with type 1 and type 2 diabetes

Recurrence of Angina After Coronary Artery Bypass Surgery: Predictors and Prognosis (CASS Registry)

Research Article Effects of Pectus Excavatum on the Spine of Pectus Excavatum Patients with Scoliosis

Syncope in Children and Adolescents

CRIKEY - A Temporal Planner Looking at the Integration of Scheduling and Planning

Draft Guidance on Dapsone

Journal of the American College of Cardiology Vol. 36, No. 4, by the American College of Cardiology ISSN /00/$20.

Numerous internal fixation techniques have been

DISCHARGE HOME AFTER ACUTE STROKE: DIFFERENCES BETWEEN OLDER AND YOUNGER PATIENTS

Anchor Selection Strategies for DIF Analysis: Review, Assessment, and New Approaches

Theory of mind in the brain. Evidence from a PET scan study of Asperger syndrome

R programs for splitting abridged fertility data into a fine grid of ages using the quadratic optimization method

Six-Month Outcome in Patients With Myocardial Infarction Initially Admitted to Tertiary and Nontertiary Hospitals

Prognostic Value of Exercise Thallium-201 Imaging Performed Within 2 Years of Coronary Artery Bypass Graft Surgery

The Usage of Emergency Contraceptive Methods of Female Students in Hawassa University: A Case Study on Natural and Computational Science

Haloperidol Use in Acute Traumatic Brain Injury: A Safety Analysis

Effects of Chewing Gum on Recovery of Bowel Motility after Laparoscopic Colorectal Surgery in South Korea

Chapter Forty-Six 46 Concordance Marjorie C. Weiss STUDY POINTS * What is meant and understood by the term concordance * How concordance differs from

Analysis of 14,843 Neonatal Congenital Heart Surgical Procedures in the European Association for Cardiothoracic Surgery Congenital Database.

Executive Dysfunction in Children and adolescents with Attention Deficit Hyperactivity Disorder (ADHD) Original Article

Case Report Urethrogluteal Fistula Developing Secondary to the Use of Clean Intermittent Self-Catheterization: First Case Report in the Literature

COPD is a common disease. Over the prolonged, Pneumonic vs Nonpneumonic Acute Exacerbations of COPD*

Acne Itch: Do Acne Patients Suffer From Itching?

Research. Dental Hygienist Attitudes toward Providing Care for the Underserved Population. Introduction. Abstract. Lynn A.

Quality of Life and Symptom Control in Patients with Cancer

Transitive Relations Cause Indirect Association Formation between Concepts. Yoav Bar-Anan and Brian A. Nosek. University of Virginia

Anxiety disorders are more common than any other

Cognitive Load and Analogy-making in Children: Explaining an Unexpected Interaction

Transcription:

Paer SD-39 Introducing Two-Way and Three-Way Interactions into the Cox Proortional Hazards Model Using SAS Seungyoung Hwang, Johns Hokins University Bloomberg School of Public Health ABSTRACT The Cox roortional hazards model to exlore the effect of exlanatory variables on survival is by far the most oular and owerful statistical technique. It is used throughout a wide variety of tyes of clinical studies. However, secial techniques are required when multile interaction terms are introduced into the Cox model. This aer rovides an in-deth analysis, with some exlanation of the SAS code. It examines two-way and three-way interaction terms into the Cox roortional hazards model using SAS. Examles of using the PHREG rocedure are drawn from the recently acceted article in the Journal of American Geriatrics Society (JAGS) (1). CASE STUDY: DEPRESSTION, DIABETES, AND MORTALITY The Prevention of Suicide in Primary Care Elderly: Collaborative Trial (PROSPECT) was a clusterrandomized controlled trial designed to comare an algorithm-based intervention with usual care to reduce major risk factors of suicide (e.g., deression) for older rimary care atients (2, 3). The PROSPECT data contain survival times for 1,226 atients in 20 rimary care ractices. The median follow-u time was 98 months and ranged from 1 to 116 months. The twenty ractices were randomly assigned to intervention or usual care. The variables are as follows: time death intervention ractice major minor diabetes age gender education marital smoking cognition suicidal charlson is the time in months from the baseline interview to death. 1 = dead; 0 = censored. 1 = intervention ractices; 0 = usual care ractices. is the ractice number for each atient. 1 = major deression; 0 = no deression. 1 = minor deression; 0 = no deression. 1 = diabetes; 0 = no diabetes. is the age in years at baseline. 1 = female; 0 = male. is the number of years of schooling comleted. 1 = married; 0 = other. 1 = smoker; 0 = non-smoker. is a measure of the cognitive imairment, ranging from 18 to 30 (lower scores indicating greater cognitive imairment). 1 = suicidal ideation; 0 = no suicidal ideation. is the Charlson comorbidity index at baseline. 1

I exlored mortality risk for deression (major and minor) among rimary care atients with diabetes in intervention ractices and in usual care ractices (results are shown below in Table 1). Table 1. Mortality risk for major and minor deression comared to no deression for atients with diabetes within intervention or usual care, adjusted hazard ratios and 95% confidence intervals. Data from PROSPECT (1999-2008). Intervention ractices Usual care ractices Medical condition Deression status (95% CI) (95% CI) Major deression 0.79 (0.42 to 1.46) 2.41 (1.36 to 4.26) Minor deression 1.40 (0.67 to 2.90) 2.25 (1.12 to 4.53) No deression 1.00 1.00 Notes: s are from Cox roortional hazards models. Adjusted models include terms for characteristics identified by their association (P < 0.05) with time to death: baseline age, gender, education, marital status, smoking, cognition, suicidal ideation, and Charlson comorbidity index. Among atients with diabetes, ersons with major deression in usual care were significantly more likely to die during the course of follow-u than were ersons in the same ractices without deression (adjusted hazard ratio = 2.41, 95% confidence interval [1.36, 4.26]). In contrast, the mortality risk was attenuated in the intervention ractices comaring ersons with major deression to no deression (confidence interval includes the null). Similar atterns were identified for minor deression (adjusted HR = 2.25, 95% CI [1.12, 4.53] in usual care; adjusted HR = 1.40, 95% CI [0.67, 2.90] in intervention). More imortantly, I investigated whether a deression management rogram (i.e., intervention) imroves mortality among older adults with diabetes (results are shown below in Table 2). Table 2. Mortality risk for intervention comared to usual care for atients with diabetes within deression status, adjusted hazard ratios and 95% confidence intervals. Data from PROSPECT (1999-2008). Intervention ractices Usual care ractices Medical condition Deression status (95% CI) (95% CI) Major deression 0.47 (0.24 to 0.91) 1.00 Minor deression 0.89 (0.48 to 1.62) 1.00 Notes: s are from Cox roortional hazards models. Adjusted models include terms for characteristics identified by their association (P < 0.05) with time to death: baseline age, gender, education, marital status, smoking, cognition, suicidal ideation, and Charlson comorbidity index. I found older rimary care atients with diabetes and major deression in ractices imlementing deression care management were less likely to die over the course of a 8-year interval than atients with diabetes and major deression in usual care ractices (adjusted HR = 0.47, 95% CI [0.24, 0.91]). Stated differently, atients with diabetes and major deression were 53% less likely to die over follow-u if they had received the PROSPECT intervention. No statistically significant effects were observed for atients with diabetes and minor deression. 2

STATISTICAL ANALYSIS USING SAS Here is the code for estimating the Cox regression models with PROC PHREG for the PROSPECT data: PROC PHREG DATA=rosect COVS(AGGREGATE); MODEL time*death(0) = major minor intervention diabetes inter1 inter2 inter3 inter4 inter5 inter6 inter7 age gender education marital smoking cognition suicidal charlson; inter1 = major*intervention; inter2 = minor*intervention; inter3 = major*diabetes; inter4 = minor*diabetes; inter5 = intervention*diabetes; inter6 = major*intervention*diabetes; inter7 = minor*intervention*diabetes; X1_vs_X3: TEST major + inter1 + inter3 + inter6 / PRINT; X2_vs_X3: TEST minor + inter2 + inter4 + inter7 / PRINT; X7_vs_X9: TEST major + inter3 / PRINT; X8_vs_X9: TEST minor + inter4 / PRINT; X1_vs_X7: TEST intervention + inter1 + inter5 + inter6 / PRINT; X2_vs_X8: TEST intervention + inter2 + inter5 + inter7 / PRINT; ID ractice; ODS OUTPUT TestPrint1 = outut1; DATA outut2; SET outut1 (RENAME=(Col1=variance Col2=estimate)); Hazard = ex(estimate); Lower_CL = ex(estimate - 1.96*sqrt(variance)); Uer_CL = ex(estimate + 1.96*sqrt(variance)); PROC PRINT DATA=outut2 NOOBS; VAR Hazard Lower_CL Uer_CL; FORMAT Hazard Lower_CL Uer_CL 4.2; The COVS(AGGREGATE) otion is secified to comute the robust sandwich covariance matrix estimate (4). The ID statement is secified in order to adjust standard errors for within-ractice clustering in the Cox roortional hazards regression (5). The analysis introduced three-way interactions (i.e., major*intervention*diabetes, minor*intervention* diabetes) into the Cox model, in addition to main effects (i.e., major, minor, intervention, diabetes), and the corresonding two-way interactions (i.e., major*intervention, minor*intervention, major* diabetes, minor* diabetes). Based on the above Cox three-way interaction model, hazard ratios for all-cause mortality, and corresonding 95% confidence intervals, were stratified by twelve grous defined by diabetes, deression status, and intervention condition as follows. 3

Medical condition No diabetes Deression status Intervention ractices Usual care ractices Major deression X1 X7 Minor deression X2 X8 No deression X3 X9 Major deression X4 X10 Minor deression X5 X11 No deression X6 X12 Xi denotes a vector of covariates (exlanatory variables) for grou i (1 i 12). For examle, diabetes = 1, major = 1, minor = 0, and intervention = 1 for X1 and diabetes = 1, major = 1, minor = 0, and intervention = 0 for X7. The adjusted hazard ratio of 0.47 in Table 2 came from the ratio of the hazard rates for these two grous. That is, HR = h (t, X1) / h (t, X7) = h (t)ex( 0 j=1 β j X1 j ) / h (t)ex( 0 j=1 β j X7 j ) = ex( j=1 β j (X1 j X7 j )) = ex(β 1 intervention + β 2 major*intervention + β 3 intervention*diabetes + β 4 major*intervention*diabetes) where h (t) 0 is the baseline hazard function. The fifth TEST statement (labeled as X1_vs_X7) comuted the estimated coefficient (β 1 + β 2 + β 3 + β 4 ) and the corresonding variance estimate. The DATA ste was used to change the variable names and calculate a hazard ratio with 95% CIs. The PROC PRINT statement was used to rint the final results with two decimal laces. The same analyses were alied to the remaining five TEST statements. DISCUSSION Recent decades have seen tremendous alications of survival analysis in various academic fields. However, few have reorted detailed information on examining two-way and three-way interaction terms into the Cox roortional hazards model using SAS. In this aer, I examined whether rimary care atients with diabetes were more or less likely to benefit from the deression care intervention using the test statement within the PROC PHREG rocedure in SAS. Other secific medical conditions (e.g., heart disease, hyertension, eriheral vascular disease, stroke, cancer, chronic ulmonary disease) were addressed in the JAGS aer (1). This aer rovides the examle SAS code to exlain the use of interaction terms in the Cox roortional hazards model, along with ste-by-ste instructions to erform each technique in SAS. The emhasis is on statistical tools and model interretations which are useful in medical follow-u studies and in general time-to-event studies. Moreover, this aer could be used as a valuable reference for biostatisticians, eidemiologists, and other healthcare rofessionals who are working in settings involving various lifetime events. Investigators interested in subgrou analysis in the randomized controlled trials should find it a useful guide for the incororation of two-way and three-way interactions into their Cox models. REFERENCES 1. Bogner HR, Joo JH, Hwang S, et al: Does a Deression Management Program Decrease Mortality in Older Adults with Secific Medical Conditions in Primary Care? An Exloratory Analysis. Journal of American Geriatrics Society 2015 2. Bruce ML, Ten Have TR, Reynolds CF, 3rd, et al: Reducing suicidal ideation and deressive symtoms in deressed older rimary care atients: a randomized controlled trial. JAMA : the journal of the American Medical Association 2004; 291:1081-1091 4

3. Gallo JJ, Morales KH, Bogner HR, et al: Long term effect of deression care management on mortality in older adults: follow-u of cluster randomized clinical trial in rimary care. BMJ 2013; 346:f2570 4. Allison PD: Survival analysis using SAS: A ractical guide., 2nd. SAS Institute, 2010 5. SAS/STAT 9.3 User's Guide, Cary, NC, SAS Institute Inc., 2011 ACKNOWLEDGMENTS I took the oortunity to use data from the Prevention of Suicide in Primary Care Elderly: Collaborative Trial (PROSPECT) study. The PROSPECT is suorted by a grant from the National Institute of Mental Health, United States (PI: Joseh J. Gallo, M.D., M.P.H.; R01 MH065539 and K24 MH070407). This work is dedicated to my arents, Jungja Han and Okgil Hwang. All I have and will accomlish are only ossible due to their love and sacrifices. As always, most secial thanks to Yun Kyoung Ryu for her advice and encouragement in getting me to finish this aer. She has been incredibly generous with her time in reviewing the draft and making many helful suggestions. All remaining errors, omissions, and weaknesses are my sole resonsibility. CONTACT INFORMATION Your comments and questions are valued and encouraged. Contact the author at: Seungyoung Hwang, MS, MSE, GStat Biostatistician, Deartment of Mental Health, DrPH Student, Deartment of Health Policy and Management Bloomberg School of Public Health Johns Hokins University 624 North Broadway, Hamton House 880 Baltimore, MD 21205 Phone: 410-440-2040 Email: shwang25@jhu.edu SAS and all other SAS Institute Inc. roduct or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and roduct names are trademarks of their resective comanies. 5