1                                        The SAS System       12:19 Wednesday, December 23, 2015

NOTE: Copyright (c) 2002-2012 by SAS Institute Inc., Cary, NC, USA. 
NOTE: SAS (r) Proprietary Software 9.4 (TS1M2) 
      Licensed to UNIVERSITY OF CALIFORNIA SYSTEM-SFA-T&R, Site 70081229.
NOTE: This session is executing on the X64_7PRO  platform.

NOTE: Updated analytical products:
      
      SAS/STAT 13.2
      SAS/ETS 13.2
      SAS/OR 13.2
      SAS/IML 13.2
      SAS/QC 13.2

NOTE: Additional host information:

 X64_7PRO WIN 6.1.7601 Service Pack 1 Workstation

NOTE: SAS initialization used:
      real time           0.09 seconds
      cpu time            0.10 seconds
      
1          ods graphics on;
2          *************************************************************************************
2        ! ****
3          *  Program Name      : ordalpha.sas
4          *
5          *  Purpose of Code   : ordinal alpha reliability
6          *
7          *  Author/Date       : Modified by RH and KS, Dec 11 2015.
8          *  Based on Laura Ring Kapitula, Estimating ordinal reliability using SAS,
9          *  Paper 2042-2014.
10         *  http://www.sascommunity.org/wiki/Estimating_Ordinal_Reliability_Using_SAS%C2%AE
11         *
12         *  Required edits include: dsname (and data), workdir, and progname.
13         *  Within datastep that sets up processing, be sure to name your items from q1 up,
14         *  and set the nitems value.
15         *************************************************************************************
15       ! ***;
16         %let progname=ordalph_setup;
17         %let workdir=C:\projects\CAHPS_MC\PSC\ordinal_reliability;
18         libname mydata "&workdir";
NOTE: Libref MYDATA was successfully assigned as follows: 
      Engine:        V9 
      Physical Name: C:\projects\CAHPS_MC\PSC\ordinal_reliability
19         
20         /* always output supporting file */
21         ods pdf file="&workdir\&progname..pdf";
NOTE: Writing ODS PDF output to DISK destination 
      "C:\projects\CAHPS_MC\PSC\ordinal_reliability\ordalph_setup.pdf", printer "PDF".

2                                        The SAS System       12:19 Wednesday, December 23, 2015

22         footnote2 "Program Name: &progname..sas on %sysfunc(today(),mmddyy10.)
23         %sysfunc(time(),time.)";
24         *************************************************************;
25         ** rename items to q1-q.. and set nitems and ds(name);
26         *************************************************************;
27         DATA pfdata;
28          SET mydata.pfdata;
29         rename
30         BATHING1  = q1
31         DRESSING1 = q2
32         EATING1   = q3
33         CHAIRS1   = q4
34         WALKING1  = q5
35         TOILET1   = q6;
36         %let nitems=6;  * number of items;
37         %let ds=pfdata; * datasetname;
38         RUN;

NOTE: There were 366701 observations read from the data set MYDATA.PFDATA.
NOTE: The data set WORK.PFDATA has 366701 observations and 6 variables.
NOTE: DATA statement used (Total process time):
      real time           0.04 seconds
      cpu time            0.04 seconds

39         *************************************************************;
40         ** no changes beyond this point;
41         %include "&workdir\ordalpha.mac" /nosource;
196        *options macrogen mprint mlogic symbolgen;
197        %ordalph(ds=&ds,items=q1-q&nitems);

NOTE: There were 366701 observations read from the data set WORK.PFDATA.
NOTE: The data set WORK.ITEMDATA has 351254 observations and 7 variables.
NOTE: DATA statement used (Total process time):
      real time           0.04 seconds
      cpu time            0.04 seconds

NOTE: PROCEDURE SQL used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

NOTE: The data set WORK.PEARSONC has 15 observations and 8 variables.
NOTE: The PROCEDURE CORR printed page 1.
NOTE: PROCEDURE CORR used (Total process time):
      real time           0.10 seconds
      cpu time            0.10 seconds

3                                        The SAS System       12:19 Wednesday, December 23, 2015

NOTE: There were 6 observations read from the data set WORK.PEARSONC.
      WHERE _type_='CORR';
NOTE: The PROCEDURE PRINT printed page 2.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

NOTE: The data set WORK.MYCORR has 36 observations and 3 variables.
NOTE: There were 351254 observations read from the data set WORK.ITEMDATA.
NOTE: PROCEDURE FREQ used (Total process time):
      real time           0.10 seconds
      cpu time            0.10 seconds

NOTE: Character values have been converted to numeric values at the places given by: 
      (Line):(Column).
      197:220   
NOTE: There were 36 observations read from the data set WORK.MYCORR.
NOTE: The data set WORK.MYCORR has 36 observations and 6 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

NOTE: There were 36 observations read from the data set WORK.MYCORR.
NOTE: The data set WORK.MYCORR has 36 observations and 6 variables.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

NOTE: There were 36 observations read from the data set WORK.MYCORR.
NOTE: The data set WORK.POLYCORR has 6 observations and 6 variables.
NOTE: PROCEDURE TRANSPOSE used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

NOTE: There were 6 observations read from the data set WORK.POLYCORR.
NOTE: The data set WORK.POLYCORR has 7 observations and 8 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

4                                        The SAS System       12:19 Wednesday, December 23, 2015

NOTE: There were 6 observations read from the data set WORK.POLYCORR.
      WHERE _type_='CORR';
NOTE: The PROCEDURE PRINT printed page 3.
NOTE: PROCEDURE PRINT used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

NOTE: The means of one or more variables in the input data set WORK.POLYCORR are missing and 
      are assumed to be 0.
NOTE: The standard deviations of one or more variables in the input data set WORK.POLYCORR are 
      missing and are assumed to be 1.
NOTE: 1 factor will be retained by the NFACTOR criterion.
NOTE: Convergence criterion satisfied.
NOTE: The PROCEDURE FACTOR printed pages 4-7.
NOTE: PROCEDURE FACTOR used (Total process time):
      real time           2.01 seconds
      cpu time            0.17 seconds

NOTE: IML Ready
NOTE: The data set WORK.ALPHAP has 1 observations and 4 variables.
NOTE: Exiting IML.
NOTE: The PROCEDURE IML printed page 8.
NOTE: PROCEDURE IML used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

NOTE: IML Ready
NOTE: The data set WORK.ALPHA has 1 observations and 4 variables.
NOTE: Exiting IML.
NOTE: The PROCEDURE IML printed page 9.
NOTE: PROCEDURE IML used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

NOTE: ODS PDF printed 10 pages to 
      C:\projects\CAHPS_MC\PSC\ordinal_reliability\ordalph_setup.pdf.
198        

NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
NOTE: The SAS System used:
      real time           2.54 seconds
      cpu time            0.71 seconds