Download as pdf or txt
Download as pdf or txt
You are on page 1of 18

Logistic Regression Using SAS

/*************************************************
LOGISTIC REGRESSION USING SAS

PROCS USED:
PROC FREQ
PROC LOGISTIC
PROC GENMOD
FILENAME: logistic.sas
*************************************************/
OPTIONS FORMCHAR!"####"$"###$"#/%&'*!(
o)tio*s +,a-c.to//0122(
o)tio*s )ag,*o0 /o-34li3! !(
titl,(
4ata 5ca*c,-(
i*/il, !5-ca.4at! l-,cl622(
i*).t i4*.3 0#7 sto)3,*s 8 ag,sto)0 9#: *.3)-,g0 ;#1 ag,5i-t< 02#00
3a3/-,=7 0> ?06 4o5 3344++;. ,4.c >0#>>
toti*co3 >6 s3o@,- >7 A,ig<t0 >8#>:(
/o-3at 4o5 3344++02.(
i/ 4o5 !21SEP11!D t<,* 4o5.(
i/ sto)3,*s1 t<,* sto)3,*s.(
i/ ag,sto)0 ;; o- ag,sto)011 t<,* ag,sto)0.(
i/ ag,5i-t< 11 t<,* ag,5i-t<.(
i/ *.3)-,g011 t<,* *.3)-,g0.(
i/ 3a3/-,=71 t<,* 3a3/-,=7.(
i/ ,4.c11 t<,* ,4.c.(
i/ toti*co3; o- toti*co31 t<,* toti*co3.(
i/ s3o@,-1 t<,* s3o@,-.(
i/ A,ig<t0111 t<,* A,ig<t0.(
i/ sto)3,*s 0 t<,* 3,*o)a.s,0(
i/ sto)3,*s > t<,* 3,*o)a.s,2(
+,a-5i-t< +,a-B4o5C(
ag, i*tBB!20DAN011:!4 # 4o5C/698.>8C(
i/ ,4.c *ot. t<,* 4o(
i/ ,4.c i* B0E>E6E7C t<,* ,4cat 0(
i/ ,4.c i* B8E9C t<,* ,4cat >(
i/ ,4.c i* B:E;C t<,* ,4cat 6(
<ig<,4 B,4.c i* B9E:E;CC(
,*4(
i/ ag, *ot. t<,* 4o(
i/ ag, &82 t<,* ag,cat0(
i/ ag, '82 a*4 ag, & 92 t<,* ag,cat>(
i/ ag, '92 a*4 ag, & :2 t<,* ag,cat6(
i/ ag, ':2 t<,* ag,cat7(
i/ ag, & 82 t<,* oF,-82 2(
i/ ag, '82 t<,* oF,-82 0(
i/ ag, ' 82 t<,* <ig<ag, 0(
1
i/ ag, & 82 t<,* <ig<ag, >(
,*4(
-.*(
titl, !D,sc-i)tiF, Statistics!(
)-oc 3,a*s 4ata5ca*c,- * *3iss 3i* 3aG 3,a* st4(
-.*(
Descriptive Statistics
The MEANS Procedure
N
Variable N Miss Minimum Maximum Mean Std Dev
----------------------------------------------------------------------------------------
idnum 37 !"# $%%"# !7&!#&' %!$#7$'3($
stopmens 3&' ! !# $# !#!('"'!& #3&73!
a)estop! $'7 73 $7# &!# %7#!"!"!"$ &#3!!&(
numpre)! 3&& % !$# $#'%""7% !#"7$&&"3
a)ebirth 3(' !! '# ""# 3#$$$"%!$ !'#(&!(%&"
mam*re+% 3$" %$ !# &# $#'%$73$ !#3"!$"(3
dob 3&! ' -!'73%# -!$%"# -7"''#( %7#!$
educ 3&( ( !# '# (#&%!'(' !#&37%('(
totincom 3$( %( !# (# 3#"$7&'$3 !#3"3&%
smo,er 3&% & !# $# !#%"&$&37 #(%''3
-ei)ht! 3& ! "&# $'(# !%"#3($777" 3!#!'3%'
menopause 3&' ! !# #"%!"% #3&73!
.earbirth 3&! ' !'(# !'(&# !'37#"& !#'"3&!77
a)e 3&! ' %# '!# ("#!%%%%3 !#'"''(""
edcat 3&% & !# 3# $#!373&3 #7&'%7"&
hi)hed 3&( ( !# #%3"3(&$ #%'&"&&&
a)ecat 3&! ' !# %# $#3$'&3'' !#7'"3!3
over( 3&! ' !# #7$(7&!" #%%&7%""
hi)ha)e 3&! ' !# $# !#$7%$3"$ #%%&7%""
----------------------------------------------------------------------------------------
titl, !O*,Aa+ F-,=.,*ci,s!(
)-oc /-,= 4ata5ca*c,-(
ta5l,s 4o5(
ta5l,s sto)3,*s 3,*o)a.s,(
ta5l,s ,4.c ,4cat(
ta5l,s ag, ag,cat oF,-82 <ig<ag,(
-.*(
The /0E1 Procedure
2umulative 2umulative
dob /re+uenc. Percent /re+uenc. Percent
---------------------------------------------------------------
!$3$!3!'( ! #$" ! #$"
'3!!3!'' ! #$" $ #((
!$3%3!'' ! #$" 3 #"3
73!(3!'!! ! #$" % !#!!
%3!3!'!3 ! #$" ( !#3'
73$"3!'!3 ! #$" & !#&&
####
!!3!"3!'(( ! #$" 3(" ''#!7
!!3$$3!'(( ! #$" 3(' ''#%(
$3$%3!'(& ! #$" 3& ''#7$
"3!3!'(& ! #$" 3&! !#
/re+uenc. Missin) 4 '
2umulative 2umulative
stopmens /re+uenc. Percent /re+uenc. Percent
-------------------------------------------------------------
! 3! "%#! 3! "%#!
$ (' !(#'' 3&' !#
/re+uenc. Missin) 4 !
2
2umulative 2umulative
menopause /re+uenc. Percent /re+uenc. Percent
--------------------------------------------------------------
(' !(#'' (' !(#''
! 3! "%#! 3&' !#
/re+uenc. Missin) 4 !
2umulative 2umulative
educ /re+uenc. Percent /re+uenc. Percent
---------------------------------------------------------
! ! #$7 ! #$7
$ % !#! ( !#37
3 !! 3#! !& %#3"
% "' $%#3" !( $"#77
( '' $7#!$ $% ((#"'
& ( !3#7 $(% &'#('
7 $3 &#3 $77 7(#"'
" "7 $3#"% 3&% ''#73
' ! #$7 3&( !#
/re+uenc. Missin) 4 (
2umulative 2umulative
edcat /re+uenc. Percent /re+uenc. Percent
----------------------------------------------------------
! !( $"#"( !( $"#"(
$ !%' %#'3 $(% &'#7"
3 !! 3#$$ 3&% !#
/re+uenc. Missin) 4 &
2umulative 2umulative
a)e /re+uenc. Percent /re+uenc. Percent
--------------------------------------------------------
% $ #(( $ #((
%! ( !#3' 7 !#'%
%$ 7 !#'% !% 3#""
%3 !! 3#( $( &#'3
%% 7 !#'% 3$ "#"&
%( !! 3#( %3 !!#'!
%& ! $#77 (3 !%#&"
%7 !& %#%3 &' !'#!!
%" !3 3#& "$ $$#7!
%' !7 %#7! '' $7#%$
( !$ 3#3$ !!! 3#7(
(! ' $#%' !$ 33#$%
($ !% 3#"" !3% 37#!$
(3 !3 3#& !%7 %#7$
(% !3 3#& !& %%#3$
(( ! $#77 !7 %7#'
(& ' $#%' !7' %'#("
(7 ! $#77 !"' ($#3(
(" !! 3#( $ ((#%
(' !% 3#"" $!% ('#$"
& ! $#77 $$% &$#(
&! " $#$$ $3$ &%#$7
&$ !! 3#( $%3 &7#3!
&3 ( !#3' $%" &"#7
&% % !#!! $($ &'#"!
&( " $#$$ $& 7$#$
&& " $#$$ $&" 7%#$%
&7 " $#$$ $7& 7&#%(
&" 7 !#'% $"3 7"#3'
&' 7 !#'% $' "#33
7 ' $#%' $'' "$#"3
7! ! $#77 3' "(#&
7$ !3 3#& 3$$ "'#$
73 ( !#3' 3$7 '#("
7% % !#!! 33! '!#&'
7( ( !#3' 33& '3#7
7& % !#!! 3% '%#!"
3
77 ( !#3' 3%( '(#(7
7" $ #(( 3%7 '&#!$
7' $ #(( 3%' '&#&"
" $ #(( 3(! '7#$3
"! 3 #"3 3(% '"#&
"$ ! #$" 3(( '"#3%
"3 $ #(( 3(7 '"#"'
"( ! #$" 3(" ''#!7
"7 $ #(( 3& ''#7$
'! ! #$" 3&! !#
/re+uenc. Missin) 4 '
2umulative 2umulative
a)ecat /re+uenc. Percent /re+uenc. Percent
-----------------------------------------------------------
! '' $7#%$ '' $7#%$
$ !!( 3!#"& $!% ('#$"
3 7& $!#( $' "#33
% 7! !'#&7 3&! !#
/re+uenc. Missin) 4 '
2umulative 2umulative
over( /re+uenc. Percent /re+uenc. Percent
-----------------------------------------------------------
'' $7#%$ '' $7#%$
! $&$ 7$#(" 3&! !#
/re+uenc. Missin) 4 '
2umulative 2umulative
hi)ha)e /re+uenc. Percent /re+uenc. Percent
------------------------------------------------------------
! $&$ 7$#(" $&$ 7$#("
$ '' $7#%$ 3&! !#
/re+uenc. Missin) 4 '
/*C-ossta5s o/ HIGHAGE 5+ STOPMENS*/
titl, !> G > Ta5l,!(
titl,> !HIGHAGE Co4,4 as 0E >!(
)-oc /-,= 4ata5ca*c,-(
ta5l,s <ig<ag,*sto)3,*s / -,l-is@ c<is=(
-.*(
$ x $ Table
5675A7E 2oded as !8 $
The /0E1 Procedure
Table o* hi)ha)e b. stopmens
hi)ha)e stopmens
/re+uenc.9
Percent 9
0o- Pct 9
2ol Pct 9 !9 $9 Total
---------:--------:--------:
! 9 $(! 9 ! 9 $&!
9 &'#7$ 9 $#7" 9 7$#(
9 '&#!7 9 3#"3 9
9 "3#3' 9 !&#'( 9
---------:--------:--------:
$ 9 ( 9 %' 9 ''
9 !3#"' 9 !3#&! 9 $7#(
9 (#(! 9 %'#%' 9
9 !&#&! 9 "3#( 9
---------:--------:--------:
Total 3! (' 3&
"3#&! !&#3' !#
4
/re+uenc. Missin) 4 !
Statistics *or Table o* hi)ha)e b. stopmens
Statistic D/ Value Prob
------------------------------------------------------
2hi-S+uare ! !'#$!'! ;#!
<i,elihood 0atio 2hi-S+uare ! ''#"!( ;#!
2ontinuit. Ad=# 2hi-S+uare ! !(#'!$$ ;#!
Mantel-5aens>el 2hi-S+uare ! !"#'!(7 ;#!
Phi 2oe**icient #(("
2ontin)enc. 2oe**icient #%"$(
2ramer?s V #(("
/isher?s Exact Test
----------------------------------
2ell @!8!A /re+uenc. @/A $(!
<e*t-sided Pr ;4 / !#
0i)ht-sided Pr B4 / (#7!'E-$3
Table Probabilit. @PA !#$%E-$!
T-o-sided Pr ;4 P (#7!'E-$3

5
Estimates o* the 0elative 0is, @0o-!30o-$A
T.pe o* Stud. Value '(C 2on*idence <imits
-----------------------------------------------------------------
2ase-2ontrol @Ddds 0atioA $%#('" !!#&"$ (!#"$!
2ohort @2ol! 0is,A !#'%! !#(&%% $#3!7&
2ohort @2ol$ 0is,A #77% #%" #!%&7
E**ective Sample Si>e 4 3&
/re+uenc. Missin) 4 !
titl, !Logistic R,g-,ssio* Ait< D.33+ Ha-ia5l, P-,4icto-!(
titl,> !OF,-82 Co4,4 as 2E 0!(
)-oc logistic 4ata5ca*c,- 4,sc,*4i*g(
3o4,l 3,*o)a.s, oF,-82/ -s=.a-,(
-.*(
<o)istic 0e)ression -ith Dumm. Variable Predictor
Dver( 2oded as 8 !
The <D76ST62 Procedure
Model 6n*ormation
Data Set ED0F#G2AN2E0
0esponse Variable menopause
Number o* 0esponse <evels $
Model binar. lo)it
Dptimi>ation Techni+ue /isher?s scorin)
Number o* Dbservations 0ead 37
Number o* Dbservations Hsed 3&
0esponse Pro*ile
Drdered Total
Value menopause /re+uenc.
! ! 3!
$ ('
Probabilit. modeled is menopause4!#
NDTEI ! observations -ere deleted due to missin) values *or the response or explanator.
variables#
Model 2onver)ence Status
2onver)ence criterion @72DNV4!E-"A satis*ied#
Model /it Statistics
6ntercept
6ntercept and
2riterion Dnl. 2ovariates
A62 3$3#!&( $$&#"%
S2 3$7#(! $33#"(&
-$ <o) < 3$!#!&( $$$#"%
0-S+uare #$%& Max-rescaled 0-S+uare #%7&
Testin) 7lobal Null 5.pothesisI GETA4
Test 2hi-S+uare D/ Pr B 2hiS+
<i,elihood 0atio ''#"!( ! ;#!
Score !'#$!'! ! ;#!
Eald 7!#3&3 ! ;#!
Anal.sis o* Maximum <i,elihood Estimates
Standard Eald
Parameter D/ Estimate Error 2hi-S+uare Pr B 2hiS+
6ntercept ! #$$ #$! #!! #'!''
over( ! 3#$$& #3" 7!#3&3 ;#!
Ddds 0atio Estimates
Point '(C Eald
E**ect Estimate 2on*idence <imits
over( $%#('& !!#&" (!#7'"
6
Association o* Predicted Probabilities and Dbserved 0esponses
Percent 2oncordant &'#3 Somers? D #&&%
Percent Discordant $#" 7amma #'$$
Percent Tied $7#' Tau-a #!"3
Pairs !77(' c #"3$
titl, !Logistic R,g-,ssio* Ait< a Class Stat,3,*t!(
titl,> !Hig<ag, .s,4 as P-,4icto-!(
titl,6 !R,/,-,*c, Cat,go-+ is Not#Hig<ag, BHig<Ag,>C!(
)-oc logistic 4ata5ca*c,- 4,sc,*4i*g(
class <ig<ag,B-,/!>!C / )a-a3-,/(
3o4,l 3,*o)a.s, <ig<ag,/ -s=.a-,(
-.*(
<o)istic 0e)ression -ith a 2lass Statement
5i)ha)e used as Predictor
0e*erence 2ate)or. is Not-5i)ha)e @5i)hA)e4$A
The <D76ST62 Procedure
Model 6n*ormation
Data Set ED0F#G2AN2E0
0esponse Variable menopause
Number o* 0esponse <evels $
Model binar. lo)it
Dptimi>ation Techni+ue /isher?s scorin)
Number o* Dbservations 0ead 37
Number o* Dbservations Hsed 3&
0esponse Pro*ile
Drdered Total
Value menopause /re+uenc.
! ! 3!
$ ('
Probabilit. modeled is menopause4!#
NDTEI ! observations -ere deleted due to missin) values *or the response or explanator.
variables#
2lass <evel 6n*ormation
Desi)n
2lass Value Variables
hi)ha)e ! !
$

Model /it Statistics
6ntercept
6ntercept and
2riterion Dnl. 2ovariates
A62 3$3#!&( $$&#"%
S2 3$7#(! $33#"(&
-$ <o) < 3$!#!&( $$$#"%
0-S+uare #$%& Max-rescaled 0-S+uare #%7&
Testin) 7lobal Null 5.pothesisI GETA4
Test 2hi-S+uare D/ Pr B 2hiS+
<i,elihood 0atio ''#"!( ! ;#!
Score !'#$!'! ! ;#!
Eald 7!#3&3 ! ;#!
T.pe 3 Anal.sis o* E**ects
Eald
E**ect D/ 2hi-S+uare Pr B 2hiS+
7
hi)ha)e ! 7!#3&3 ;#!
Anal.sis o* Maximum <i,elihood Estimates
Standard Eald
Parameter D/ Estimate Error 2hi-S+uare Pr B 2hiS+
6ntercept ! #$$ #$! #!! #'!''
hi)ha)e ! ! 3#$$& #3" 7!#3&3 ;#!
Ddds 0atio Estimates
Point '(C Eald
E**ect Estimate 2on*idence <imits
hi)ha)e ! vs $ $%#('& !!#&" (!#7'"
titl, !Logistic R,g-,ssio* Ait< a Co*ti*.o.s P-,4icto-!(
o4s g-a)<ics o*(
)-oc logistic 4ata5ca*c,- 4,sc,*4i*g )lotsB,//,ctC(
3o4,l 3,*o)a.s, ag, / -s=.a-,(
.*its ag, 0 8 02(
-.*(
o4s g-a)<ics o//(
<o)istic 0e)ression -ith a 2ontinuous Predictor
The <D76ST62 Procedure
Model 6n*ormation
Data Set ED0F#G2AN2E0
0esponse Variable menopause
Number o* 0esponse <evels $
Model binar. lo)it
Dptimi>ation Techni+ue /isher?s scorin)
Number o* Dbservations 0ead 37
Number o* Dbservations Hsed 3&

0esponse Pro*ile
Drdered Total
Value menopause /re+uenc.
! ! 3!
$ ('
Probabilit. modeled is menopause4!#
NDTEI ! observations -ere deleted due to missin) values *or the response or explanator.
variables#
Model 2onver)ence Status
2onver)ence criterion @72DNV4!E-"A satis*ied#
Model /it Statistics
6ntercept
6ntercept and
2riterion Dnl. 2ovariates
A62 3$3#!&( $!#!'
S2 3$7#(! $"#7'$
-$ <o) < 3$!#!&( !'7#!'
0-S+uare #$'!7 Max-rescaled 0-S+uare #%'%$
Testin) 7lobal Null 5.pothesisI GETA4
Test 2hi-S+uare D/ Pr B 2hiS+
<i,elihood 0atio !$%#!%(& ! ;#!
Score "!#&&' ! ;#!
Eald %'#7&%& ! ;#!
Anal.sis o* Maximum <i,elihood Estimates
Standard Eald
8
Parameter D/ Estimate Error 2hi-S+uare Pr B 2hiS+
6ntercept ! -!$#"&7( !#'3& %%#!73( ;#!
a)e ! #$"$' #%! %'#7&%& ;#!
Ddds 0atio Estimates
Point '(C Eald
E**ect Estimate 2on*idence <imits
a)e !#3$7 !#$$7 !#%3&
Association o* Predicted Probabilities and Dbserved 0esponses
Percent 2oncordant "'#3 Somers? D #"&
Percent Discordant "#7 7amma #"$$
Percent Tied $# Tau-a #$$$
Pairs !77(' c #'3
Ad=usted Ddds 0atios
E**ect Hnit Estimate
a)e !# !#3$7
a)e (# %#!!(
a)e !# !&#'3(
9
titl, !R,latio*s<i) o/ E4.catio* Cat,go-i,s to M,*o)a.s,!(
)-oc /-,= 4ata5ca*c,-(
ta5l,s ,4cat*sto)3,*s / c<is= *ocol *o),-c,*t(
-.*(
10
Table o* edcat b. stopmens
edcat stopmens
/re+uenc.9
0o- Pct 9 !9 $9 Total
---------:--------:--------:
! 9 '& 9 ' 9 !(
9 '!#%3 9 "#(7 9
---------:--------:--------:
$ 9 !$( 9 $3 9 !%"
9 "%#%& 9 !(#(% 9
---------:--------:--------:
3 9 "% 9 $& 9 !!
9 7&#3& 9 $3#&% 9
---------:--------:--------:
Total 3( (" 3&3
/re+uenc. Missin) 4 7
Statistics *or Table o* edcat b. stopmens
Statistic D/ Value Prob
------------------------------------------------------
2hi-S+uare $ '#!!7$ #!(
<i,elihood 0atio 2hi-S+uare $ '#337 #'%
Mantel-5aens>el 2hi-S+uare ! '#7!( #$&
Phi 2oe**icient #!("(
2ontin)enc. 2oe**icient #!(&(
2ramer?s V #!("(
titl, !Logistic R,g-,ssio* to P-,4ict M,*o)a.s, F-o3 E4.catio*!(
)-oc logistic 4ata5ca*c,- 4,sc,*4i*g(
class ,4catB-,/!0!C / )a-a3 -,/(
3o4,l 3,*o)a.s, ,4cat/ -s=.a-,(
-.*(
<o)istic 0e)ression to Predict Menopause /rom Education
The <D76ST62 Procedure
Model 6n*ormation
Data Set ED0F#G2AN2E0
0esponse Variable menopause
Number o* 0esponse <evels $
Model binar. lo)it
Dptimi>ation Techni+ue /isher?s scorin)
Number o* Dbservations 0ead 37
Number o* Dbservations Hsed 3&3
0esponse Pro*ile
Drdered Total
Value menopause /re+uenc.
! ! 3(
$ ("
Probabilit. modeled is menopause4!#
NDTEI 7 observations -ere deleted due to missin) values *or the response or explanator.
variables#
2lass <evel 6n*ormation
Desi)n
2lass Value Variables
edcat !
$ !
3 !
Model 2onver)ence Status
2onver)ence criterion @72DNV4!E-"A satis*ied#
Model /it Statistics
11
6ntercept
6ntercept and
2riterion Dnl. 2ovariates
A62 3$#'3( 3!(#('"
S2 3$%#"$' 3$7#$"!
-$ <o) < 3!"#'3( 3'#('"
0-S+uare #$(% Max-rescaled 0-S+uare #%3%
Testin) 7lobal Null 5.pothesisI GETA4
Test 2hi-S+uare D/ Pr B 2hiS+
<i,elihood 0atio '#337 $ #'%
Score '#!!7$ $ #!(
Eald "#&3!% $ #!3%
T.pe 3 Anal.sis o* E**ects
Eald
E**ect D/ 2hi-S+uare Pr B 2hiS+
edcat $ "#&3!% #!3%
Anal.sis o* Maximum <i,elihood Estimates
Standard Eald
Parameter D/ Estimate Error 2hi-S+uare Pr B 2hiS+
6ntercept ! $#3&7! #3%"& %&#!&' ;#!
edcat $ ! -#&7%3 #%!(' $#&$7' #!(
edcat 3 ! -!#!'%% #%!%& "#$'' #%
Ddds 0atio Estimates
Point '(C Eald
E**ect Estimate 2on*idence <imits
edcat $ vs ! #(! #$$( !#!(!
edcat 3 vs ! #33 #!3% #&"3
Association o* Predicted Probabilities and Dbserved 0esponses
Percent 2oncordant %(# Somers? D #$3%
Percent Discordant $!#& 7amma #3($
Percent Tied 33#( Tau-a #&3
Pairs !7&' c #&!7
titl, !R,latio*s<i) o/ AGECAT to MENOPAUSE!(
)-oc /-,= 4ata5ca*c,-(
ta5l,s ag,cat*sto)3,*s/ c<is= *ocol *o),-c,*t(
-.*(
0elationship o* A7E2AT to MENDPAHSE
The /0E1 Procedure
Table o* a)ecat b. stopmens
a)ecat stopmens
/re+uenc.9
0o- Pct 9 !9 $9 Total
---------:--------:--------:
! 9 ( 9 %' 9 ''
9 (#(! 9 %'#%' 9
---------:--------:--------:
$ 9 !& 9 ' 9 !!(
9 '$#!7 9 7#"3 9
---------:--------:--------:
3 9 7% 9 ! 9 7(
9 '"#&7 9 !#33 9
---------:--------:--------:
% 9 7! 9 9 7!
9 !# 9 # 9
---------:--------:--------:
Total 3! (' 3&
/re+uenc. Missin) 4 !
12
Statistics *or Table o* a)ecat b. stopmens
Statistic D/ Value Prob
------------------------------------------------------
2hi-S+uare 3 !!!#&&( ;#!
<i,elihood 0atio 2hi-S+uare 3 !!#!7($ ;#!
Mantel-5aens>el 2hi-S+uare ! 7"#&'7" ;#!
Phi 2oe**icient #((&'
2ontin)enc. 2oe**icient #%"&&
2ramer?s V #((&'
E**ective Sample Si>e 4 3&
/re+uenc. Missin) 4 !
titl, !Logistic R,g-,ssio* Ait< AGECAT as P-,4icto-!(
titl,> !T<is A*al+sis Do,s *ot Io-@!(
titl,6 !C<,c@ o.t t<, Pa-a3,t,- Esti3at,s a*4 Sta*4a-4 E--o-s!(
)-oc logistic 4ata5ca*c,- 4,sc,*4i*g(
class ag,catB-,/!0!C / )a-a3 -,/(
3o4,l 3,*o)a.s, ag,cat/ -s=.a-,(
-.*(
<o)istic 0e)ression -ith A7E2AT as Predictor
This Anal.sis Does not Eor,
2hec, out the Parameter Estimates and Standard Errors
The <D76ST62 Procedure
Model 6n*ormation
Data Set ED0F#G2AN2E0
0esponse Variable menopause
Number o* 0esponse <evels $
Model binar. lo)it
Dptimi>ation Techni+ue /isher?s scorin)
Number o* Dbservations 0ead 37
Number o* Dbservations Hsed 3&
0esponse Pro*ile
Drdered Total
Value menopause /re+uenc.
! ! 3!
$ ('
Probabilit. modeled is menopause4!#
NDTEI ! observations -ere deleted due to missin) values *or the response or explanator.
variables#
2lass <evel 6n*ormation
2lass Value Desi)n Variables
a)ecat !
$ !
3 !
% !
Model Convergence Status
Quasi-complete separation of data points detected.
WARNING: !e ma"imum li#eli!ood estimate ma$ not e"ist.
WARNING: !e %&GISIC procedure continues in spite of t!e a'ove (arning. Results s!o(n are
'ased on t!e last ma"imum li#eli!ood iteration. )alidit$ of t!e model fit is
*uestiona'le.
WARNING: !e validit$ of t!e model fit is *uestiona'le.
Model /it Statistics
6ntercept
6ntercept and
2riterion Dnl. 2ovariates
A62 3$3#!&( $!"#''
S2 3$7#(! $3%#(3%
13
-$ <o) < 3$!#!&( $!#''
0-S+uare #$&3& Max-rescaled 0-S+uare #%%&7
Testin) 7lobal Null 5.pothesisI GETA4
Test 2hi-S+uare D/ Pr B 2hiS+
<i,elihood 0atio !!#!7($ 3 ;#!
Score !!!#&&( 3 ;#!
Eald (#7'3 3 ;#!
T.pe 3 Anal.sis o* E**ects
Eald
E**ect D/ 2hi-S+uare Pr B 2hiS+
a)ecat 3 (#7'3 ;#!
Anal.sis o* Maximum <i,elihood Estimates
Standard Eald
Parameter D/ Estimate Error 2hi-S+uare Pr B 2hiS+
6ntercept ! #$$ #$! #!! #'!''
a)ecat $ ! $#%%& #%!$ 37#!7$! ;#!
a)ecat 3 ! %#$"3' !#$&& !7#%!$& ;#!
a)ecat % ! !%#"'&' $(#' #($ #'%$3
EA0N6N7I The validit. o* the model *it is +uestionable#

Ddds 0atio Estimates
Point '(C Eald
E**ect Estimate 2on*idence <imits
a)ecat $ vs ! !!#(%$ (#$(" $(#33'
a)ecat 3 vs ! 7$#($ '#&'& (%$#3"%
a)ecat % vs ! B'''#''' ;#! B'''#'''
Association o* Predicted Probabilities and Dbserved 0esponses
Percent 2oncordant 77# Somers? D #73&
Percent Discordant 3#% 7amma #'!(
Percent Tied !'#& Tau-a #$$
Pairs !77(' c #"&"
/*R,co4, Ag,cat i*to AGECAT6 Ait< 6 cat,go-i,s*/
4ata 5ca*c,->(
s,t 5ca*c,-(
i/ ag, *ot. t<,* 4o(
i/ ag, & 82 t<,* ag,cat6 0(
i/ ag, '82 a*4 ag, & 92 t<,* ag,cat6 >(
i/ ag, '92 t<,* ag,cat6 6(
,*4(
-.*(
titl, !Logistic R,g-,ssio* Ait< R,co4,4 Ag, Cat,go-i,s!(
titl,> !T<is A*al+sis Io-@s!(
)-oc logistic 4ata5ca*c,-> 4,sc,*4i*g(
class ag,cat6B-,/!0!C / )a-a3 -,/(
3o4,l 3,*o)a.s, ag,cat6/ -s=.a-,(
-.*(
<o)istic 0e)ression -ith 0ecoded A)e 2ate)ories
This Anal.sis Eor,s
The <D76ST62 Procedure
Model 6n*ormation
Data Set ED0F#G2AN2E0$
0esponse Variable menopause
Number o* 0esponse <evels $
14
Model binar. lo)it
Dptimi>ation Techni+ue /isher?s scorin)
Number o* Dbservations 0ead 37
Number o* Dbservations Hsed 3&
0esponse Pro*ile
Drdered Total
Value menopause /re+uenc.
! ! 3!
$ ('
Probabilit. modeled is menopause4!#
NDTEI ! observations -ere deleted due to missin) values *or the response or explanator.
variables#

2lass <evel 6n*ormation
Desi)n
2lass Value Variables
a)ecat3 !
$ !
3 !
Model 2onver)ence Status
2onver)ence criterion @72DNV4!E-"A satis*ied#
Model /it Statistics
6ntercept
6ntercept and
2riterion Dnl. 2ovariates
A62 3$3#!&( $!"#3$'
S2 3$7#(! $$'#'"7
-$ <o) < 3$!#!&( $!$#3$'
0-S+uare #$&' Max-rescaled 0-S+uare #%%$
Testin) 7lobal Null 5.pothesisI GETA4
Test 2hi-S+uare D/ Pr B 2hiS+
<i,elihood 0atio !"#"3&( $ ;#!
Score !!!#&!3$ $ ;#!
Eald ((#3(3( $ ;#!
T.pe 3 Anal.sis o* E**ects
Eald
E**ect D/ 2hi-S+uare Pr B 2hiS+
a)ecat3 $ ((#3(3( ;#!
Anal.sis o* Maximum <i,elihood Estimates
Standard Eald
Parameter D/ Estimate Error 2hi-S+uare Pr B 2hiS+
6ntercept ! #$$ #$! #!! #'!''
a)ecat3 $ ! $#%%& #%!$ 37#!7$! ;#!
a)ecat3 3 ! %#'(&( !#$3% $3#%(7" ;#!
Ddds 0atio Estimates
Point '(C Eald
E**ect Estimate 2on*idence <imits
a)ecat3 $ vs ! !!#(%$ (#$(" $(#33'
a)ecat3 3 vs ! !%$#'7 !'#!$ B'''#'''
Association o* Predicted Probabilities and Dbserved 0esponses
Percent 2oncordant 7&#& Somers? D #73$
Percent Discordant 3#% 7amma #'!(
Percent Tied $# Tau-a #$!
Pairs !77(' c #"&&
titl, !Logistic R,g-,ssio* Ait< S,F,-al P-,4icto-s!(
15
)-oc logistic 4ata5ca*c,- 4,sc,*4i*g(
class ,4catB-,/!0!C / )a-a3 -,/(
3o4,l 3,*o)a.s, ag, ,4cat s3o@,- toti*co3 *.3)-,g0
/ -s=.a-,(
-.*(
<o)istic 0e)ression -ith Several Predictors
The <D76ST62 Procedure
Model 6n*ormation
Data Set ED0F#G2AN2E0
0esponse Variable menopause
Number o* 0esponse <evels $
Model binar. lo)it
Dptimi>ation Techni+ue /isher?s scorin)
Number o* Dbservations 0ead 37
Number o* Dbservations Hsed 3!3
0esponse Pro*ile
Drdered Total
Value menopause /re+uenc.
! ! $('
$ (%
Probabilit. modeled is menopause4!#
NDTEI (7 observations -ere deleted due to missin) values *or the response or explanator.
variables#
2lass <evel 6n*ormation
Desi)n
2lass Value Variables
edcat !
$ !
3 !
Model 2onver)ence Status
2onver)ence criterion @72DNV4!E-"A satis*ied#
Model /it Statistics
6ntercept
6ntercept and
2riterion Dnl. 2ovariates
A62 $"'#"7& !'!#(!
S2 $'3#&$$ $!7#73%
-$ <o) < $"7#"7& !77#(!
0-S+uare #$'7! Max-rescaled 0-S+uare #%'%!
Testin) 7lobal Null 5.pothesisI GETA4
Test 2hi-S+uare D/ Pr B 2hiS+
<i,elihood 0atio !!#3&(7 & ;#!
Score 73#!(!$ & ;#!
Eald %%#&&3 & ;#!
T.pe 3 Anal.sis o* E**ects
Eald
E**ect D/ 2hi-S+uare Pr B 2hiS+
a)e ! %#&'% ;#!
edcat $ $#377& #3%&
smo,er ! $#''$ #""!
totincom ! #33$ #("!'
numpre)! ! #$( #'&(
Anal.sis o* Maximum <i,elihood Estimates
Standard Eald
Parameter D/ Estimate Error 2hi-S+uare Pr B 2hiS+
16
6ntercept ! -!#"!(! $#$!3$ $3#"7"" ;#!
a)e ! #$7'7 #%3' %#&'% ;#!
edcat $ ! -#%3(& #(($% #&$!' #%3%
edcat 3 ! -#"%! #(&3& $#$$!% #!3&!
smo,er ! -#&(%3 #3"3& $#''$ #""!
totincom ! -#'$7 #!&"3 #33$ #("!'
numpre)! ! #&%& #!3( #$( #'&(
Ddds 0atio Estimates
Point '(C Eald
E**ect Estimate 2on*idence <imits
a)e !#3$3 !#$!% !#%%$
edcat $ vs ! #&%7 #$!' !#'!
edcat 3 vs ! #%3$ #!%3 !#33
smo,er #($ #$%( !#!$
totincom #'!! #&(( !#$&"
numpre)! !#& #77' !#3
Association o* Predicted Probabilities and Dbserved 0esponses
Percent 2oncordant '# Somers? D #"$
Percent Discordant '#" 7amma #"%
Percent Tied #$ Tau-a #$3
Pairs !3'"& c #'!
titl, !Logistic R,g-,ssio* Usi*g P-oc G,*3o4!(
)-oc g,*3o4 4ata5ca*c,- 4,sc,*4i*g(
class ,4catB-,/!0!C / )a-a3 -,/(
3o4,l 3,*o)a.s, ag, ,4cat s3o@,- toti*co3 *.3)-,g0
/ 4ist5i* t+),6(
-.*(
<o)istic 0e)ression Hsin) Proc 7enmod
The 7ENMDD Procedure
Model 6n*ormation
Data Set ED0F#G2AN2E0
Distribution Ginomial
<in, /unction <o)it
Dependent Variable menopause
Number o* Dbservations 0ead 37
Number o* Dbservations Hsed 3!3
Number o* Events $('
Number o* Trials 3!3
Missin) Values (7
2lass <evel 6n*ormation
Desi)n
2lass Value Variables
edcat !
$ !
3 !
0esponse Pro*ile
Drdered Total
Value menopause /re+uenc.
! ! $('
$ (%
P0D2 7ENMDD is modelin) the probabilit. that menopause4?!?#
2riteria /or Assessin) 7oodness D* /it
2riterion D/ Value Value3D/
Deviance 3& !77#(!$ #("!
Scaled Deviance 3& !77#(!$ #("!
Pearson 2hi-S+uare 3& $'7#%3&7 #'7$
Scaled Pearson J$ 3& $'7#%3&7 #'7$
<o) <i,elihood -""#7((!
Al)orithm conver)ed#
Anal.sis D* Parameter Estimates
Standard Eald '(C 2on*idence 2hi-
17
Parameter D/ Estimate Error <imits S+uare Pr B 2hiS+
6ntercept ! -!#"!(! $#$!3$ -!(#!(3 -&#%773 $3#"" ;#!
a)e ! #$7'7 #%3' #!'37 #3&(" %#&! ;#!
edcat $ ! -#%3(& #(($% -!#(!"$ #&%7 #&$ #%3%
edcat 3 ! -#"%! #(&3& -!#'%%" #$&%7 $#$$ #!3&!
smo,er ! -#&(%3 #3"3& -!#%&$ #'7& $#'! #""!
totincom ! -#'$7 #!&"3 -#%$$& #$37$ #3 #("!'
numpre)! ! #&( #!3( -#$%'% #$&$3 # #'&(
Scale !# # !# !#
NDTEI The scale parameter -as held *ixed#
<0 Statistics /or T.pe 3 Anal.sis
2hi-
Source D/ S+uare Pr B 2hiS+
a)e ! "'#!$ ;#!
edcat $ $#%( #$'3$
smo,er ! $#'& #"($
totincom ! #3! #(7'%
numpre)! ! # #'&(
18

You might also like