Permuted-block randomization with varying block sizes using SAS Proc Plan Lei Li, RTI International, RTP, North Carolina



Similar documents
Generating Randomization Schedules Using SAS Programming Chunqin Deng and Julia Graz, PPD, Inc., Research Triangle Park, North Carolina

Paper PO06. Randomization in Clinical Trial Studies

SUGI 29 Posters. Mazen Abdellatif, M.S., Hines VA CSPCC, Hines IL, 60141, USA

Survey Analysis: Options for Missing Data

New SAS Procedures for Analysis of Sample Survey Data

Abbas S. Tavakoli, DrPH, MPH, ME 1 ; Nikki R. Wooten, PhD, LISW-CP 2,3, Jordan Brittingham, MSPH 4

Chapter 11 Introduction to Survey Sampling and Analysis Procedures

SSN validation Virtually at no cost Milorad Stojanovic RTI International Education Surveys Division RTP, North Carolina

Post Processing Macro in Clinical Data Reporting Niraj J. Pandya

The SURVEYFREQ Procedure in SAS 9.2: Avoiding FREQuent Mistakes When Analyzing Survey Data ABSTRACT INTRODUCTION SURVEY DESIGN 101 WHY STRATIFY?

SAS Enterprise Guide in Pharmaceutical Applications: Automated Analysis and Reporting Alex Dmitrienko, Ph.D., Eli Lilly and Company, Indianapolis, IN

Automate Data Integration Processes for Pharmaceutical Data Warehouse

2. Making example missing-value datasets: MCAR, MAR, and MNAR

Paper KEYWORDS PROC TRANSPOSE, PROC CORR, PROC MEANS, PROC GPLOT, Macro Language, Mean, Standard Deviation, Vertical Reference.

The Science and Art of Market Segmentation Using PROC FASTCLUS Mark E. Thompson, Forefront Economics Inc, Beaverton, Oregon

UNTIED WORST-RANK SCORE ANALYSIS

Innovative Techniques and Tools to Detect Data Quality Problems

Introduction to Criteria-based Deduplication of Records, continued SESUG 2012

Logistic (RLOGIST) Example #3

Creating Word Tables using PROC REPORT and ODS RTF

SAS and Clinical IVRS: Beyond Schedule Creation Gayle Flynn, Cenduit, Durham, NC

ABSTRACT INTRODUCTION %CODE MACRO DEFINITION

Calculating Changes and Differences Using PROC SQL With Clinical Data Examples

Paper PO-008. exceeds 5, where and (Stokes, Davis and Koch, 2000).

Essential Project Management Reports in Clinical Development Nalin Tikoo, BioMarin Pharmaceutical Inc., Novato, CA

Data Mining: An Overview of Methods and Technologies for Increasing Profits in Direct Marketing. C. Olivia Rud, VP, Fleet Bank

Paper RIV15 SAS Macros to Produce Publication-ready Tables from SAS Survey Procedures

WHITE PAPER. CONVERTING SDTM DATA TO ADaM DATA AND CREATING SUBMISSION READY SAFETY TABLES AND LISTINGS. SUCCESSFUL TRIALS THROUGH PROVEN SOLUTIONS

Laboratory 3 Type I, II Error, Sample Size, Statistical Power

Health Services Research Utilizing Electronic Health Record Data: A Grad Student How-To Paper

Papers presented at the ICES-III, June 18-21, 2007, Montreal, Quebec, Canada

SIGN CRITICAL APPRAISAL COURSE: EXERCISE 2

Utilizing Clinical SAS Report Templates with ODS Sunil Kumar Gupta, Gupta Programming, Simi Valley, CA

Guido s Guide to PROC FREQ A Tutorial for Beginners Using the SAS System Joseph J. Guido, University of Rochester Medical Center, Rochester, NY

College SAS Tools. Hope Opportunity Jobs

Study Designs. Simon Day, PhD Johns Hopkins University

Intent-to-treat Analysis of Randomized Clinical Trials

Taming the PROC TRANSPOSE

Randomization in Clinical Trials

Data Management and Analysis for Successful Clinical Research. Lily Wang, PhD Department of Biostatistics Vanderbilt University

Design and Analysis of Phase III Clinical Trials

Modeling Lifetime Value in the Insurance Industry

Abstract. Introduction. System Requirement. GUI Design. Paper AD

Best Practice in SAS programs validation. A Case Study

One problem > Multiple solutions; various ways of removing duplicates from dataset using SAS Jaya Dhillon, Louisiana State University

PharmaSUG Paper DG06

Creating HTML Output with Output Delivery System

Developing a Strategy to Optimize Clinical Trial Supplies

Sensitivity Analysis in Multiple Imputation for Missing Data

This can dilute the significance of a departure from the null hypothesis. We can focus the test on departures of a particular form.

XI XI. Community Reinvestment Act Sampling Guidelines. Sampling Guidelines CRA. Introduction

Can SAS Enterprise Guide do all of that, with no programming required? Yes, it can.

Introduction to SAS Business Intelligence/Enterprise Guide Alex Dmitrienko, Ph.D., Eli Lilly and Company, Indianapolis, IN

ABSTRACT INTRODUCTION PATIENT PROFILES SESUG Paper PH-07

Constructing a Table of Survey Data with Percent and Confidence Intervals in every Direction

The Essentials of Finding the Distinct, Unique, and Duplicate Values in Your Data

National Longitudinal Study of Adolescent Health. Strategies to Perform a Design-Based Analysis Using the Add Health Data

Biostat Methods STAT 5820/6910 Handout #6: Intro. to Clinical Trials (Matthews text)

STATISTICAL DATA ANALYSIS

Statistics and Analysis. Quality Control: How to Analyze and Verify Financial Data

Applications Development

StARScope: A Web-based SAS Prototype for Clinical Data Visualization

Paper PO12 Pharmaceutical Programming: From CRFs to Tables, Listings and Graphs, a process overview with real world examples ABSTRACT INTRODUCTION

Predicting Customer Churn in the Telecommunications Industry An Application of Survival Analysis Modeling Using SAS

How to build ADaM from SDTM: A real case study

SAS Data Set Encryption Options

A Macro to Create Data Definition Documents

PROC LOGISTIC: Traps for the unwary Peter L. Flom, Independent statistical consultant, New York, NY

Make Better Decisions with Optimization

Providing Historical Control Data for Toxicology With the SAS Stored Process Web Application

Methods for Interaction Detection in Predictive Modeling Using SAS Doug Thompson, PhD, Blue Cross Blue Shield of IL, NM, OK & TX, Chicago, IL

Pharmaceutical Applications

Paper Hot Links: Creating Embedded URLs using ODS Jonathan Squire, C 2 RA (Cambridge Clinical Research Associates), Andover, MA

Guidance for Industry

Using Repeated Measures Techniques To Analyze Cluster-correlated Survey Responses

Imelda C. Go, South Carolina Department of Education, Columbia, SC

INTERNATIONAL CONFERENCE ON HARMONISATION OF TECHNICAL REQUIREMENTS FOR REGISTRATION OF PHARMACEUTICALS FOR HUMAN USE

MEASURES OF LOCATION AND SPREAD

Paper PO03. A Case of Online Data Processing and Statistical Analysis via SAS/IntrNet. Sijian Zhang University of Alabama at Birmingham

Descriptive Methods Ch. 6 and 7

IBM SPSS Direct Marketing 23

Perfecting Report Output to RTF Steven Feder, Federal Reserve Board, Washington, D.C.

Using SAS to Create Graphs with Pop-up Functions Shiqun (Stan) Li, Minimax Information Services, NJ Wei Zhou, Lilly USA LLC, IN

Sampling Error Estimation in Design-Based Analysis of the PSID Data

You have got SASMAIL!

Paper DV KEYWORDS: SAS, R, Statistics, Data visualization, Monte Carlo simulation, Pseudo- random numbers

Clinical Study Design and Methods Terminology

Statistics and Pharmacokinetics in Clinical Pharmacology Studies

Logistic (RLOGIST) Example #1

Paper Merges and Joins Timothy J Harrington, Trilogy Consulting Corporation

ln(p/(1-p)) = α +β*age35plus, where p is the probability or odds of drinking

Transcription:

Paper PO-21 Permuted-block randomization with varying block sizes using SAS Proc Plan Lei Li, RTI International, RTP, North Carolina ABSTRACT Permuted-block randomization with varying block sizes using SAS Proc Plan Permuted-block randomization is often used in determining treatment assignments for clinical trials. This method allows flexibility in achieving balanced allocation of subjects among treatment groups and is further enhanced with increased randomness of the assignments by the use of varying block sizes. Chow and Liu (2004) illustrated the implementation of the permutedblock randomization with a fixed block size using the SAS PROC PLAN. This paper presents a modified version of their SAS program to implement the permuted-block randomization with varying block sizes. This program is simple to run and self-contained. Users can easily adapt the program to meet various design specifications, produce analytical statistics and present the generated randomization schedule in a desired format. INTRODUCTION A variety of randomization methods have been used to determine treatment/intervention assignments of study subjects in controlled clinical trials. The purpose of using randomization methods is to remove bias in the allocation of treatment assignments and ensure study treatment arms comparable with respect to known and unknown risk factors. A randomization scheme is desired to be unpredictable in the allocation of treatments and in the end of recruitment to produce balanced allocations that achieve approximately the preset treatment allocation ratios. Simple randomization method assigns a treatment or placebo to a study subject by chance based on pre-set probabilities. This method often yields imbalanced allocations in which the distribution of study subjects in each arm deviates substantially from the desired allocation ratios, resulting in loss of power and logistical problems. This problem is of particular concern when sample size is small. A more commonly used method is permuted block randomization instead. Study subjects are divided into a large number of blocks, typically a small block of 2, 4, or 6, and simple randomization is done in each block. This method can ensure the approximate balance at end of recruitment, minimize chance of imbalance due to unexpected shortfall in enrollment and facilitate planning and implementation of the treatment administration process. A drawback of this method is that once the first few assignments in a block are revealed future assignments will become known or predictable. A variation of the permuted-block randomization that randomly mixes blocks of different sizes has been widely used to overcome this problem. In the following, we describe the SAS codes for generating a permuted-block randomization schedule, modified from a sample program using PROC PLAN by Chow and Liu (2004). The program outputs the generated randomization schedule into a SAS dataset and users can analyze it using SAS data analysis procedures or convert it into formats suitable for presentation. Because the program is self-contained, it can be easily adapted by users. PERMUTED-BLOCK RANDOMIZATION The idea of permuted-block randomization can be illustrated with a simple example. In a controlled clinical trial with a treatment (T) and placebo (P), the sample size is 200 patients and 100 patients will receive the treatments with the rest receiving placebo. We can use 25 blocks of 4 patients and assign two patients to the treatment arm and two to the placebo arm by randomly selecting one of six possible permutations of the treatment among four patients, TTPP, PPTT, TPTP, PTPT, TPPT, PTTP. As long as enrollment into each block is completed, equal number of patients in treatment and placebo arms, or balance, is guaranteed. In contrast, if simple randomization is carried out, assigning a patient to the treatment arm when a uniform random function between 0 and 1 generates a value less than.5 and to the placebo arm otherwise, there is a chance that a relatively large cluster of patients are assigned to the treatment arms consecutively and the number of patients in the treatment arm may not equal the number in the placebo arm at the end of recruitment. Selection bias may arise from the clustered assignments if certain patient characteristics that may affect the outcome are associated with the clustering. Randomized controlled trials are often designed with some stratification by demographics such as genders, races and age groups, or other factors likely affecting outcome like disease severity. Usually center is also a stratification factor in multicenter studies. Stratification improves the representativeness of the study sample, allowing the analysis results generalized to the target population, and enables subgroup analysis across/within strata. Permuted-block randomization will be done within each stratum in this case. 1

PROC PLAN PROC PLAN constructs designs and randomizes plans for factorial experiments. It generates designs by first generating a selection of the levels for the first factor and then, for the second factor, etc.. The selection can be done using randomized selection method to list the levels of factors in a random order, or ordered selection to sort the levels in a standard order, or using other selection methods (cyclic, permuted, combination). The randomized selection method can be used to generate permuted-block randomization schedule. The following is an example of options linesize=70 pagesize=40 nodate; proc plan ordered; factors center=4 blocks=6 cell=4; treatments t=4 random; output out=perblock; data perblock; set perblock; tmt=1; if t gt 2 then tmt=2; sub=_n_; subject=(14*100000)+center*1000+(sub-(center-1)*24); proc format; value tmtf 1= Active Drug 2= Placebo ; Run; proc sort data=perblock; by center; the codes provided in Chow and Liu (2004) for generating a permutated-block randomization schedule with a block size of four for a randomized, placebo-control, two parallel arms with equal number of patients, clinical trial in four centers. Center is the first factor as a stratification variable. Twenty-four patients are expected in each center and they are divided into six blocks of four cells. The default selection method for all factors is set to be ordered but the order of treatment within each block is randomized. The order numbers 1 and 2 correspond to the treatment of drug under investigation and 3 and 4 correspond to placebo. The example above fixes the size of block at four patients. We can modify the codes to allow for blocks of different sizes. For example, the 24 patients may be divided into four blocks of four patients and four blocks of two patients within each center. PROC PLAN is run twice with the block size set to cell=4 and cell=2 and then the two SAS datasets containing the generated randomization schedules are combined. After sorting the combined file by center, blocks and cell, blocks of size four would be listed first, followed by blocks of size two, in the combined file. We would like blocks of the two different sizes listed in random order to make the treatment assignment unpredictable based on previous assignments. PROC PLAN is run the third time with the combined randomization schedule file as input file in the OUTPUT statement. The output data set has the same form as the input data set but has the values of the factor blocks re-ordered using randomized selection method. Note that the value of the factor blocks for blocks of size two is changed from 1-4 to 5-8 by adding 4, the block size of four, to it, in the combined file. 2

options linesize=70 pagesize=40 nodate; proc plan ordered seed=11; factors center=4 blocks=4 cell=4; treatments t4=4 random; output out=perblock4; proc plan ordered seed=22; factors center=4 blocks=4 cell=2; treatments t2=2 random; output out=perblock2; data percenter200; set perblock4 perblock2; tmt=1; if t4 gt 2 then tmt=2; else if t2 gt 1 then tmt=2; if t2>0 then blocks=blocks+4; if t4= 1 then tmtl='a' ; if t4= 2 then tmtl='b' ; if t4= 3 then tmtl='c' ; if t4= 4 then tmtl='d' ; if t2= 1 then tmtl='e' ; if t2= 2 then tmtl='f' ; proc sort data=percenter200; by center blocks cell; proc plan seed=33; factors center=4 ordered ordered blocks=8 ; output data=percenter200 out=percenter; proc sort data=percenter; by center blocks cell; CONCLUSION In this paper I have described the components of a SAS program for implementing the permuted-block randomization with varying block sizes. This program is self-contained and can easily adapt ted to meet various design specifications. A complete program that includes quality checking statistics and outputs the generated randomization schedule into a Microsoft-Word file is attached in the appendix. REFERENCES Dmitrienko A, Chuang-Stein C, D'Agostino RB. 2007. Pharmaceutical statistics using SAS: a practical guide. Cary, NC: SAS Institute Inc. 3

Chow SC, Liu JP. 2004. Design and analysis of clinical trials: concepts and methodologies. John Wiley and Sons, Inc. Hoboken, NJ. Matts JP, Lachin JM. 1988. Properties of permuted-block randomization in clinical trials. Control Clin Trials. 9(4):327-44. SAS Institute Inc. 2009. SAS/STAT(R) 9.2 User's Guide, Second Edition. Cary, NC. CONTACT INFORMATION Your comments and questions are valued and encouraged. Contact the author at: Lei Li, Ph.D. Statistics and Epidemiology Unit RTI International 3040 Cornwallis Road Research Triangle Park, NC 27709 Phone: (919)541-8821 Fax: (919)541-5966 Email: lei@rti.org SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product names are trademarks of their respective companies. 4

Appendix options linesize=70 pagesize=40 nodate; proc plan ordered seed=11; factors center=18 strata=2 blocks=15 cell=4; treatments t4=4 random; output out=perblock4; proc plan ordered seed=22; factors center=18 strata=2 blocks=20 cell=2; treatments t2=2 random; output out=perblock2; data percenter200; set perblock4 perblock2; tmt=1; if t4 gt 2 then tmt=2; else if t2 gt 1 then tmt=2; if t2>0 then blocks=blocks+15; if t4= 1 then tmtl='a' ; if t4= 2 then tmtl='b' ; if t4= 3 then tmtl='c' ; if t4= 4 then tmtl='d' ; if t2= 1 then tmtl='e' ; if t2= 2 then tmtl='f' ; proc sort data=percenter200; by center strata blocks cell; proc plan seed=33; factors center=18 ordered strata=2 ordered blocks=35 ; output data=percenter200 out=percenter; proc sort data=percenter; by center strata blocks cell; data alist; set percenter; by center strata; retain tmtcntr sub; if first.strata then do; sub=0;tmtcntr=0; end; sub+1; subject=center*1000+(strata-1)*100+sub; if tmt=2 then tmtcntr+1; balance=tmtcntr/sub; proc format; value tmtf 1="Placebo " 2="Active Drug"; value t4f 1="A" 2="B" 3="C" 4="D"; value t2f 1="E" 2="F" ; value strataf 1="Stratum 1" 2="Stratum 2"; value centerf 1 ="H03 " 2 ="H04 " 5

3 ="H05 " 4 ="H09 " 5 ="H11 " 6 ="H12 " 7 ="H14 " 8 ="H15 " 9 ="H16 " 10 ="H18 " 11 ="H19 " 12 ="H24 " 13 ="H26 " 14 ="H27 " 15 ="H28 " 16 ="H29 " 17 ="H30 " 18 ="H31 " ; options nodate ls=120 ps=5000; ods rtf body="e:\alist.doc" ; proc print data=alist split="*" ; page by center strata; by center strata; id subject; *var t4 t2 tmtl tmt balance; var tmtl tmt balance; label subject="randomization*number* " t4="size 4(x15) Random*Permutation* " t2="size 2(x20) Random*Permutation* " tmtl="assignment*letter* " tmt="treatment*assignment* " balance="balance*ratio* "; format tmt tmtf. strata strataf. center centerf. t4 t4f. t2 t2f. balance 4.2; title1 " Effects of Hydrocortisone Trial"; title2 " Double-blind, Randomized, Placebo-Control, Two Arms "; title3 " 18 Centers, 100 patients per arm per center per stratum"; title4 "Permuted-block randomization: mix of 15 blocks of size 4 and 20 blocks of size 2"; ods rtf close; 6