请选择 进入手机版 | 继续访问电脑版
楼主: moonstone
19626 15

[原创博文] 广义加法模型(PROC GAM)与PROC LOGISTIC 及PROC GENMOD之间的区别与联系 [推广有奖]

llkknnllyytt 发表于 2015-10-19 19:50:06 |显示全部楼层 |坛友微信交流群
jingju11 发表于 2014-12-16 13:17
Thanks for sharing.
The difference was resulted from that both logistic and genmod procedures ...
请问会poisson回归模型不

使用道具

Kaylee10 发表于 2016-12-30 14:35:55 |显示全部楼层 |坛友微信交流群
谢谢分享

使用道具

不如故 学生认证  发表于 2017-3-2 09:52:06 |显示全部楼层 |坛友微信交流群
感谢楼主分享,这里的样条 和rcs区别大吗? 非线性部分,作图的Y轴可以看做是B吗?回归系数?

使用道具

不如故 发表于 2017-3-2 09:52
感谢楼主分享,这里的样条 和rcs区别大吗? 非线性部分,作图的Y轴可以看做是B吗?回归系数?
请问您知道为什么要在构建gam模型的时候,给每个变量加上自由度DF吗?

使用道具

alex1122 发表于 2020-2-16 13:53:30 |显示全部楼层 |坛友微信交流群
在SAS 论坛上看到如下答复,一定程度上可以回应楼主问题:
The results are consistent with each other.  Both are correct.  However, they have been obtained using different expansions of the categorical variables.  The GENMOD procedure employs an over parameterized model in which a set of k binary variables are produced when the number of levels of a categorical variable is k.  SAS refers to this as the GLM parameterization.  By default, the LOGISTIC procedure employs a model with k-1 variables in the design matrix.  Moreover, the k-1 variables are not binary, but can take on one of three values: -1, 0, or 1. This sort of parameterization is referred to as effect coding.

For variable X1, columns of the design matrix given GLM coding and effect coding are as follows:

             GLM coding

   X1    X1_1    X1_2    X1_3

    a     1       0       0

    b     0       1       0

    c     0       0       1

        Effect coding

   X1    X1_1    X1_2

    a     1       0

    b     0       1

    c    -1      -1

It can be shown that these two parameterizations will yield the same predicted response values.  But the parameters do have to be interpreted differently.

If you prefer the GLM parameterization (a lot of people do), you can request that parameterization in the LOGISTIC procedure.  All you have to do is change your class statement to:

class x1 x1 / param=glm;

来源:
https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-vs-PROC-GENMOD-different-results/m-p/27600#M1039

使用道具

mengqinqing 发表于 2020-2-24 13:11:19 来自手机 |显示全部楼层 |坛友微信交流群
moonstone 发表于 2014-12-5 13:37
PROC GAM的主要用途是在广义线性模型(PROC GENMOD)基础上探索自变量与因变量之间是否有非线性关系。至于为 ...
谢谢分享!

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-3-29 08:25