[计算机]SAS程序14 LOGISTIC回归模型.doc
《[计算机]SAS程序14 LOGISTIC回归模型.doc》由会员分享,可在线阅读,更多相关《[计算机]SAS程序14 LOGISTIC回归模型.doc(13页珍藏版)》请在三一办公上搜索。
1、LOGISTIC回归由于取值非即,如设取的概率为,则它取的概率为Qi。第个观察对象的发生概率比数(odds)为称为发生比,是发生概率与不发生概率的比。发生比取对数称为LOGIT变换。回归系数的解释,i表示xi改变一个单位时, logit P的平均变化量。相对危险度(relative risk): RR=P1/P2比数Odds=P/(1-P)比数比OR=P/(1-P)/P/(1-P)对比数比取自然对数得到关系式:ln等式左边是比数比的自然对数,等式右边的是同一因素的不同水平与之差。的意义是在其它自变量固定不变的情况下,自变量的水平每改变一个测量单位时所引起的比数比的自然对数改变量。或者说,在其他
2、自变量固定不变的情况下,当自变量的水平每增加一个测量单位时所引起的比数比为增加前的倍。自变量每增加一个单位,其相对危险度为e。Logit回归模型实质是求一种概率的估计,将某种概率与一个线性函数联系起来。例:三种药物drug取值0-2, 病情程度degree 分重-轻两类(0-1);因变量response为治疗效果的效与无效(1-0)Data ex12_1;Input drug degree response count;Datalines;0 1 1 38 0 1 0 640 0 1 100 0 0 821 1 1 951 1 0 181 0 1 501 0 0 352 1 1 882 1 0
3、 262 0 1 342 0 0 37;Proc logistic data=ex12_1 descending;Freq count;Class drug/param=ref descending;Model response=drug degree/rsq scale=n aggregate;Run;Rsq显示R2Scale, SCALE= species method to correct overdispersion,指定参数,=n表示不需要修正。Aggregate计算卡方检验统计量Class 语句将分类变量化成虚拟变量,三种药用两个虚拟变量表示。The LOGISTIC Proced
4、ureModel InformationData Set WORK.EX12_1Response Variable responseNumber of Response Levels 2Frequency Variable countModel binary logitOptimization Technique Fishers scoringNumber of Observations Read 12Number of Observations Used 12Sum of Frequencies Read 577Sum of Frequencies Used 577Response Prof
5、ileOrdered TotalValue response Frequency1 1 3152 0 262Probability modeled is response=1.Class Level InformationDesignClass Value Variablesdrug 2 1 01 0 10 0 0Model Convergence StatusConvergence criterion (GCONV=1E-8) satisfied.Deviance and Pearson Goodness-of-Fit StatisticsCriterion Value DF Value/D
6、F Pr ChiSqDeviance 0.3749 2 0.1874 0.8291Pearson 0.3689 2 0.1844 0.8316模型拟合集优度检验,Number of unique profiles: 6Model Fit Statistics Intercept Intercept andCriterion Only CovariatesAIC 797.017 641.326SC 801.375 658.757-2 Log L 795.017 633.326R-Square 0.2444 Max-rescaled R-Square 0.3268The LOGISTIC Proc
![[计算机]SAS程序14 LOGISTIC回归模型.doc_第1页](https://www.31ppt.com/fileroot1/2023-4/27/b7582689-efab-40a9-b26b-53c5484d4718/b7582689-efab-40a9-b26b-53c5484d47181.gif)
![[计算机]SAS程序14 LOGISTIC回归模型.doc_第2页](https://www.31ppt.com/fileroot1/2023-4/27/b7582689-efab-40a9-b26b-53c5484d4718/b7582689-efab-40a9-b26b-53c5484d47182.gif)
![[计算机]SAS程序14 LOGISTIC回归模型.doc_第3页](https://www.31ppt.com/fileroot1/2023-4/27/b7582689-efab-40a9-b26b-53c5484d4718/b7582689-efab-40a9-b26b-53c5484d47183.gif)
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机 计算机SAS程序14 LOGISTIC回归模型 SAS 程序 14 LOGISTIC 回归 模型

链接地址:https://www.31ppt.com/p-4561066.html