广义线性模型教材

上传人:最**** 文档编号:117974643 上传时间:2019-12-11 格式:PPT 页数:24 大小:1.72MB
返回 下载 相关 举报
广义线性模型教材_第1页
第1页 / 共24页
广义线性模型教材_第2页
第2页 / 共24页
广义线性模型教材_第3页
第3页 / 共24页
广义线性模型教材_第4页
第4页 / 共24页
广义线性模型教材_第5页
第5页 / 共24页
点击查看更多>>
资源描述

《广义线性模型教材》由会员分享,可在线阅读,更多相关《广义线性模型教材(24页珍藏版)》请在金锄头文库上搜索。

1、广义线性模型 Generalized linear model 2010-4-15 山东大学公共卫生学院:刘静 2 明确两个概念: n线性模型(linear model),也称经典线性模型( classical linear model)或一般线性模型(general linear model, GLM)。 n广义线性模型(generalized linear model, GENMOD)是一般线性模型的直接推广,由 Nelder & Wedderburn(1972)首先提出。 2010-4-15 山东大学公共卫生学院:刘静 3 SAS软件中的PROC GLM: PROC GLM analyz

2、es data within the framework of general linear models. PROC GLM handles models relating one or several continuous dependent variables to one or several independent variables. The independent variables may be either classification variables or continuous variables. Thus, the GLM procedure can be used

3、 for many different analyses, including u simple regression u multiple regression u analysis of variance (ANOVA), especially for unbalanced data u analysis of covariance u response-surface models (响应面模型) u weighted regression u polynomial regression (多项式回归) u partial correlation u multivariate analy

4、sis of variance (MANOVA) u repeated measures analysis of variance 2010-4-15 山东大学公共卫生学院:刘静 4 nThe GENMOD Procedure nThe GENMOD procedure fits generalized linear models. The class of generalized linear models is an extension of traditional linear models that allows the mean of a population to depend o

5、n a linear predictor through a nonlinear link function and allows the response probability distribution to be any member of an exponential family of distributions. Many widely used statistical models are generalized linear models. These include classical linear models with normal errors, logistic an

6、d probit models for binary data, and log-linear models for multinomial data. Many other useful statistical models can be formulated as generalized linear models by the selection of an appropriate link function and response probability distribution. SAS软件中的PROC GENMOD: 2010-4-15 山东大学公共卫生学院:刘静 5 一、何为“

7、广义线性模型”? 广义线性模型(generalized linear model)由 Nelder & Wedderburn(1972)首先提出,是一般线 性模型的直接推广,它使因变量的总体均值通过 一个非线性连接函数(link function)而依赖于线 性预测值,同时还允许响应概率分布为指数分布 族中的任何一员。许多广泛应用的统计模型均属 于广义线性模型,如logistic回归模型、Probit回 归模型、Poisson回归模型、负二项回归模型等。 2010-4-15 山东大学公共卫生学院:刘静 6 n指数分布族的概率密度(概率函数)可表示为: 其中,和为两个参数, 称为自然参数, 为离

8、散参 数;a、b、c为函数。 2010-4-15 山东大学公共卫生学院:刘静 7 2010-4-15 山东大学公共卫生学院:刘静 8 一个广义线性模型包括以下三个组成部分: (1)线性成分(linear component ) : (2)随机成分(random component ): (3)连接函数 ( link function): 连接函数为一单调可微(连续且充分光滑)的函数。 何为“广义线性模型”?(续) 2010-4-15 山东大学公共卫生学院:刘静 9 2010-4-15 山东大学公共卫生学院:刘静 10 SAS9.0 GENMOD过程中所整合的响应变量分布类型 2010-4-15

9、 山东大学公共卫生学院:刘静 11 广义线性模型在两个方面对经典线性模型进行了推广: (1)一般线性模型中要求因变量是连续的且服从正态 分布,在广义线性模型中,因变量的分布可扩展到非连 续的资料,如二项分布、Poisson分布、负二项分布等。 (2)一般线性模型中,自变量的线性预测值就是因变 量的估计值,而广义线性模型中,自变量的线性预测值 是因变量的函数估计值。 何为“广义线性模型”?(续) 2010-4-15 山东大学公共卫生学院:刘静 12 包括:多元线性回归模型 logistic回归模型 Probit回归模型 Poisson回归模型 负二项回归模型 广义线性模型的一般形式: 何为“广义

10、线性模型”?(续) 2010-4-15 山东大学公共卫生学院:刘静 13 Generalized linear models(广义线性模型) nFamily of regression models nOutcome variable determines choice of model nUses nControl of confounding nModel building, risk prediction Outcome Model ContinuousLinear regression BinomialLogistic regression SurvivalCox model Coun

11、tsPoisson regression 2010-4-15 山东大学公共卫生学院:刘静 14 二、广义线性模型的参数估计 n广义线性模型的参数估计一般不能用最小二 乘估计,常用加权最小二乘法(weighted least squared, WLS)或最大似然法(maximum likelihood)估计。 n各回归系数需用迭代方法求解。 n求得 后,用下式估计: 2010-4-15 山东大学公共卫生学院:刘静 15 二、广义线性模型的参数估计(续) 2010-4-15 山东大学公共卫生学院:刘静 16 Log-likelihood functions 2010-4-15 山东大学公共卫生学院

12、:刘静 17 Log-likelihood functions 2010-4-15 山东大学公共卫生学院:刘静 18 Log-likelihood functions 2010-4-15 山东大学公共卫生学院:刘静 19 Log-likelihood functions 2010-4-15 山东大学公共卫生学院:刘静 20 三、广义线性模型的假设检验 广义线性模型的检验一般用似然比检验、Wald检 验和记分检验。模型的比较用似然比检验。 (1)似然比检验:似然比检验是通过比较两个相嵌套模型 (如模型P嵌套于模型K内)的对数似然函数来进行的, 其统计量G为: 其中,模型P中的自变量是模型K中自变

13、量的一部分,另一 部分就是要检验的变量。这里G服从自由度为K-P的2分布 。 模型P的对数似然函数 模型K的对数似然函数 2010-4-15 山东大学公共卫生学院:刘静 21 vLikelihood ratio statistic(似然比统计量) Compares two nested models g() = + 1x1 + 2x2 + 3x3 + 4x4 (model 1) g() = + 1x1 + 2x2 (model 2) LR statistic -2 log (likelihood model 2 / likelihood model 1) = -2 log (likelihoo

14、d model 2) -2log (likelihood model 1) LR statistic is a 2 with DF = number of extra parameters in model 三、广义线性模型的假设检验 (1)似然比检验(续) 2010-4-15 山东大学公共卫生学院:刘静 22 三、广义线性模型的假设检验(续) (2)回归系数的Wald检验: Wald检验是通过比较估计系数与0的差别 来进行的,其检验统计量为: 或 这里,z为标准正态变量。参数的可信区间如下计算: 2010-4-15 山东大学公共卫生学院:刘静 23 三、广义线性模型的假设检验(续) (3)比

15、分(Score)检验: 以未包含 某个或某几个变量的模型为基础 ,保留模型中参数的估计值,并假设新增加的 参数之系数为0,计算似然函数的一阶偏导数 (又称有效比分)及信息矩阵,两者相乘即为 比分检验统计量S。当样本含量较大时,S的分 布近似服从2分布,自由度为检验的参数个数 。 2010-4-15 山东大学公共卫生学院:刘静 24 对于广义线性模型,通常用下面两种统计量度 量模型的拟合优度。 (1) 偏差统计量(Deviance) (2) 广义 Pearson 2统计量( Pearsons chi-square statistic) (3) 伪R2统计量(Pseudo-R2 ) (4) AIC、AICC、BIC、CAIC 四、广义线性模型的拟合优度

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 高等教育 > 大学课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号