1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
55
56 /********************** birdlung.sas **************************/
57 title 'Logistic Regression on Bird Lung Data';
58
59 proc format;
60 value ynfmt 0 = "No" 1 = "Yes";
NOTE: Format YNFMT is already on the library WORK.FORMATS.
NOTE: Format YNFMT has been output.
61 value sexfmt 0 = "Male" 1 = "Female";
NOTE: Format SEXFMT is already on the library WORK.FORMATS.
NOTE: Format SEXFMT has been output.
62 value sesfmt 0 = "Low" 1 = "High";
NOTE: Format SESFMT is already on the library WORK.FORMATS.
NOTE: Format SESFMT has been output.
63
NOTE: PROCEDURE FORMAT used (Total process time):
real time 0.02 seconds
cpu time 0.02 seconds
64 data tweet;
65 infile '/folders/myfolders/2453f15/birdlung.data.txt';
66 input cancer sex ses birdkeep age yrsmoke cigday;
67 format sex sexfmt.;
68 format ses sesfmt.;
69 format cancer birdkeep ynfmt.;
70
NOTE: The infile '/folders/myfolders/2453f15/birdlung.data.txt' is:
Filename=/folders/myfolders/2453f15/birdlung.data.txt,
Owner Name=root,Group Name=vboxsf,
Access Permission=-rwxrwx---,
Last Modified=08Oct2015:21:01:02,
File Size (bytes)=3379
NOTE: 147 records were read from the infile '/folders/myfolders/2453f15/birdlung.data.txt'.
The minimum record length was 21.
The maximum record length was 22.
NOTE: The data set WORK.TWEET has 147 observations and 7 variables.
NOTE: DATA statement used (Total process time):
real time 0.06 seconds
cpu time 0.06 seconds
71 proc freq;
72 tables cancer sex ses birdkeep cigday;
73
NOTE: There were 147 observations read from the data set WORK.TWEET.
NOTE: PROCEDURE FREQ used (Total process time):
real time 0.23 seconds
cpu time 0.23 seconds
74 proc means;
75 var age yrsmoke cigday;
76
NOTE: There were 147 observations read from the data set WORK.TWEET.
NOTE: PROCEDURE MEANS used (Total process time):
real time 0.06 seconds
cpu time 0.06 seconds
77 proc logistic order=internal descending; /* Always use descending for 0-1 DV */
78 model cancer = sex ses birdkeep age yrsmoke cigday;
79 smoke: test yrsmoke = cigday = 0;
80
81
82
83
84
85 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
97