1 The SAS System 09:53 Friday, October 27, 2006 NOTE: Copyright (c) 2002-2003 by SAS Institute Inc., Cary, NC, USA. NOTE: SAS (r) 9.1 (TS1M3) Licensed to UNC-CHAPEL HILL-SYSTEMWIDE-T/R, Site 0039466002. NOTE: This session is executing on the XP_PRO platform. NOTE: SAS 9.1.3 Service Pack 3 NOTE: SAS initialization used: real time 0.48 seconds cpu time 0.12 seconds NOTE: AUTOEXEC processing beginning; file is c:\local\sas91\autoexec.sas. NOTE: AUTOEXEC processing completed. 1 * example1.sas 2 * xref: 3 * input: 4 * output: 5 * does: - example usage of the VCBD macro 6 ******************************************************************;; 7 filename MAC "vcbd.sas"; 8 %include MAC; 145 ******************************************************************;; 146 data A; 147 input practice provider y m ; 148 label m = "Number of patients"; 149 label y = "Number of patients with a positive response"; 150 cards; NOTE: The data set WORK.A has 12 observations and 4 variables. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.01 seconds 163 ; 164 run; 165 ******************************************************************;; 166 167 %vcbd (data = A, i = practice, mij = m, yij = y); NOTE: There were 12 observations read from the data set WORK.A. NOTE: The data set WORK._A_ has 12 observations and 5 variables. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.01 seconds NOTE: There were 12 observations read from the data set WORK._A_. NOTE: The data set WORK._B_ has 5 observations and 8 variables. NOTE: PROCEDURE SUMMARY used (Total process time): real time 0.00 seconds cpu time 0.01 seconds NOTE: There were 5 observations read from the data set WORK._B_. 2 The SAS System 09:53 Friday, October 27, 2006 NOTE: The data set WORK._C_ has 5 observations and 11 variables. NOTE: DATA statement used (Total process time): real time 0.00 seconds cpu time 0.00 seconds NOTE: There were 5 observations read from the data set WORK._C_. NOTE: The data set WORK._D_ has 1 observations and 11 variables. NOTE: PROCEDURE SUMMARY used (Total process time): real time 0.00 seconds cpu time 0.01 seconds Variance Components for Nested Binary Responses (Version 1.0) (c) Bahjat Qaqish and Habib Moalem (1993) Department of Biostatistics CB 7400 Chapel Hill, NC 27599-7420 Data set: A Response: y / m Practice ID: practice Total number of practices: 5 Total number of physicians: 12 Total number of patients: 47 Sum of y: 19 Mean of y: 0.4042553191 Estimates: Theta: 0.3719868516 Lambda_1: 0 Lambda_2: 0.9270341029 Variance components: Between practices: 0 % Between providers within practice: 92.703410289 % Between patients Within provider: 7.2965897113 % Correlation: Between providers within practice: 0 Between patients within provider: 0.9270341029 Odds ratio: Between providers within practice: 1 Between patients within provider: 746.34875792 Macro VCBD done. NOTE: There were 1 observations read from the data set WORK._D_. NOTE: The data set WORK._E_ has 1 observations and 31 variables. NOTE: DATA statement used (Total process time): real time 0.01 seconds cpu time 0.01 seconds 168 NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 NOTE: The SAS System used: real time 0.58 seconds 3 The SAS System 09:53 Friday, October 27, 2006 cpu time 0.19 seconds