Transcription of The LOGISTIC Procedure - SAS
1 SAS/STAT User s GuideThe LOGISTIC ProcedureThis document is an individual chapter fromSAS/STAT User s correct bibliographic citation for the complete manual is as follows: SAS Institute Inc. User s , NC: SAS Institute 2013, SAS Institute Inc., Cary, NC, USAAll rights reserved. Produced in the United States of a hard-copy book: No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or byany means, electronic, mechanical, photocopying, or otherwise, without the prior written permission of the publisher, SAS a web download or e-book: Your use of this publication shall be governed by the terms established by the vendor at the timeyou acquire this scanning, uploading, and distribution of this book via the Internet or any other means without the permission of the publisher isillegal and punishable by law.
2 Please purchase only authorized electronic editions and do not participate in or encourage electronicpiracy of copyrighted materials. Your support of others rights is Government License Rights; Restricted Rights:The Software and its documentation is commercial computer softwaredeveloped at private expense and is provided with RESTRICTED RIGHTS to the United States Government. Use, duplication ordisclosure of the Software by the United States Government is subject to the license terms of this Agreement pursuant to, asapplicable, FAR , DFAR (a), DFAR (a) and DFAR and, to the extent required under law, the minimum restricted rights as set out in FAR (DEC 2007).
3 If FAR is applicable, this provisionserves as notice under clause (c) thereof and no other notice is required to be affixed to the Software or documentation. TheGovernment s rights in Software and documentation shall be only those set forth in this Institute Inc., SAS Campus Drive, Cary, North Carolina 2013 SAS provides a complete selection of books and electronic products to help customers use SAS software to its fullest potential. Formore information about our offerings, call and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in theUSA and other countries.
4 Indicates USA brand and product names are trademarks of their respective 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. 2013 SAS Institute Inc. All rights reserved. all that you need on your journey to knowledge and additional books and Greater Insight into Your SAS Software with SAS 58 The LOGISTIC ProcedureContentsOverview: LOGISTIC Procedure ..4485 Getting Started: LOGISTIC Procedure ..4488 Syntax: LOGISTIC Procedure .
5 4496 PROC LOGISTIC Statement ..4497BY Statement ..4509 CLASS Statement ..4510 CODE Statement ..4513 CONTRAST Statement ..4513 EFFECT Statement ..4516 EFFECTPLOT Statement ..4518 ESTIMATE Statement ..4519 EXACT Statement ..4520 EXACTOPTIONS Statement ..4522 FREQ Statement ..4525ID Statement ..4526 LSMEANS Statement ..4526 LSMESTIMATE Statement ..4527 MODEL Statement ..4529 NLOPTIONS Statement ..4544 ODDSRATIO Statement ..4544 OUTPUT Statement ..4546 ROC Statement ..4551 ROCCONTRAST Statement ..4551 SCORE Statement ..4552 SLICE Statement ..4555 STORE Statement ..4555 STRATA Statement ..4555 TEST Statement.
6 4557 UNITS Statement ..4557 WEIGHT Statement ..4558 Details: LOGISTIC Procedure ..4559 Missing Values ..4559 Response Level Ordering ..4559 Link Functions and the Corresponding Distributions ..4561 Determining Observations for Likelihood Contributions ..4562 Iterative Algorithms for Model Fitting ..45634484 FChapter 58: The LOGISTIC ProcedureConvergence Criteria ..4565 Existence of Maximum Likelihood Estimates ..4565 Effect-Selection Methods ..4566 Model Fitting Information ..4567 Generalized Coefficient of Determination ..4568 Score Statistics and Tests ..4569 Confidence Intervals for Parameters ..4571 Odds Ratio Estimation.
7 4572 Rank Correlation of Observed Responses and Predicted Probabilities ..4575 Linear Predictor, Predicted Probability, and Confidence Limits ..4576 Classification Table ..4577 Overdispersion ..4579 The Hosmer-Lemeshow Goodness-of-Fit Test ..4581 Receiver Operating Characteristic Curves ..4582 Testing Linear Hypotheses about the Regression Coefficients ..4585 Regression Diagnostics ..4586 Scoring Data Sets ..4589 Conditional LOGISTIC Regression ..4594 Exact Conditional LOGISTIC Regression ..4597 Input and Output Data Sets ..4601 Computational Resources ..4606 Displayed Output ..4609 ODS Table Names ..4614 ODS Graphics.
8 4616 Examples: LOGISTIC Procedure ..4618 Example : Stepwise LOGISTIC Regression and Predicted Values ..4618 Example : LOGISTIC Modeling with Categorical Predictors ..4635 Example : Ordinal LOGISTIC Regression ..4644 Example : Nominal Response Data: Generalized Logits Model ..4650 Example : Stratified Sampling ..4657 Example : LOGISTIC Regression Diagnostics ..4659 Example : ROC Curve, Customized Odds Ratios, Goodness-of-Fit Statistics, R-Square, and Confidence Limits ..4668 Example : Comparing Receiver Operating Characteristic Curves ..4672 Example : Goodness-of-Fit Tests and Subpopulations ..4681 Example : Overdispersion.
9 4684 Example : Conditional LOGISTIC Regression for Matched Pairs Data ..4688 Example : Firth s Penalized Likelihood Compared with Other Approaches ..4693 Example : Complementary Log-Log Model for Infection Rates ..4696 Example : Complementary Log-Log Model for Interval-Censored Survival Times 4701 Example : Scoring Data Sets ..4706 Example : Using the LSMEANS Statement ..4712 Example : Partial Proportional Odds Model ..4719 References ..4724 Overview: LOGISTIC ProcedureF4485 Overview: LOGISTIC ProcedureBinary responses (for example, success and failure), ordinal responses (for example, normal, mild, andsevere), and nominal responses (for example, major TV networks viewed at a certain hour) arise in manyfields of study.
10 LOGISTIC regression analysis is often used to investigate the relationship between these discreteresponses and a set of explanatory variables. Texts that discuss LOGISTIC regression include Agresti (2002);Allison (1999); Collett (2003); Cox and Snell (1989); Hosmer and Lemeshow (2000); Stokes, Davis, andKoch (2012).For binary response models, the response,Y, of an individual or an experimental unit can take on one of twopossible values, denoted for convenience by 1 and 2 (for example,Y= 1 if a disease is present, otherwiseY=2). Supposexis a vector of explanatory variables and the response probability to bemodeled. The linear LOGISTIC model has the formlogit.