为了正常的体验网站,请在浏览器设置里面开启Javascript功能!
首页 > 广义线性模型

广义线性模型

2013-04-24 24页 ppt 1MB 116阅读

用户头像

is_633243

暂无简介

举报
广义线性模型null广义线性模型 Generalized linear model广义线性模型 Generalized linear model明确两个概念:明确两个概念:线性模型(linear model),也称经典线性模型(classical linear model)或一般线性模型(general linear model, GLM)。 广义线性模型(generalized linear model,GENMOD)是一般线性模型的直接推广,由Nelder & Wedderburn(1972)首先提出。SAS软件中的PROC GL...
广义线性模型
null广义线性模型 Generalized linear model广义线性模型 Generalized linear model明确两个概念:明确两个概念:线性模型(linear model),也称经典线性模型(classical linear model)或一般线性模型(general linear model, GLM)。 广义线性模型(generalized linear model,GENMOD)是一般线性模型的直接推广,由Nelder & Wedderburn(1972)首先提出。SAS软件中的PROC GLM:SAS软件中的PROC GLM:PROC GLM analyzes 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 for many different analyses, including simple regression multiple regression analysis of variance (ANOVA), especially for unbalanced data analysis of covariance response-surface models (响应面模型) weighted regression polynomial regression (多项式回归) partial correlation multivariate analysis of variance (MANOVA) repeated measures analysis of variance SAS软件中的PROC GENMOD:SAS软件中的PROC GENMOD:The GENMOD Procedure The 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 on 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 and 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. 一、何为“广义线性模型”?一、何为“广义线性模型”?广义线性模型(generalized linear model)由Nelder & Wedderburn(1972)首先提出,是一般线性模型的直接推广,它使因变量的总体均值通过一个非线性连接函数(link function)而依赖于线性预测值,同时还允许响应概率分布为指数分布族中的任何一员。许多广泛应用的统计模型均属于广义线性模型,如logistic回归模型、Probit回归模型、Poisson回归模型、负二项回归模型等。null指数分布族的概率密度(概率函数)可表示为:其中,和为两个参数,  称为自然参数,  为离散参数;a、b、c为函数。null何为“广义线性模型”?(续)何为“广义线性模型”?(续)一个广义线性模型包括以下三个组成部分: (1)线性成分(linear component ) : (2)随机成分(random component ): (3)连接函数 ( link function): 连接函数为一单调可微(连续且充分光滑)的函数。nullnullSAS9.0 GENMOD过程中所整合的响应变量分布类型何为“广义线性模型”?(续)广义线性模型在两个方面对经典线性模型进行了推广: (1)一般线性模型中因变量是连续的且服从正态分布,在广义线性模型中,因变量的分布可扩展到非连续的资料,如二项分布、Poisson分布、负二项分布等。 (2)一般线性模型中,自变量的线性预测值就是因变量的估计值,而广义线性模型中,自变量的线性预测值是因变量的函数估计值。何为“广义线性模型”?(续)何为“广义线性模型”?(续)何为“广义线性模型”?(续)包括:多元线性回归模型 logistic回归模型 Probit回归模型 Poisson回归模型 负二项回归模型 广义线性模型的一般形式:Generalized linear models(广义线性模型)Generalized linear models(广义线性模型)Family of regression models Outcome variable determines choice of model Uses Control of confounding Model building, risk prediction Outcome Model Continuous Linear regression Binomial Logistic regression Survival Cox model Counts Poisson regression二、广义线性模型的参数估计二、广义线性模型的参数估计广义线性模型的参数估计一般不能用最小二乘估计,常用加权最小二乘法(weighted least squared, WLS)或最大似然法(maximum likelihood)估计。 各回归系数需用迭代方法求解。 求得 后,用下式估计:null二、广义线性模型的参数估计(续)Log-likelihood functionsLog-likelihood functionsLog-likelihood functionsLog-likelihood functionsLog-likelihood functionsLog-likelihood functionsLog-likelihood functionsLog-likelihood functions三、广义线性模型的假设检验三、广义线性模型的假设检验 广义线性模型的检验一般用似然比检验、Wald检验和记分检验。模型的比较用似然比检验。 (1)似然比检验:似然比检验是通过比较两个相嵌套模型(如模型P嵌套于模型K内)的对数似然函数来进行的,其统计量G为: 其中,模型P中的自变量是模型K中自变量的一部分,另一部分就是要检验的变量。这里G服从自由度为K-P的2分布。Likelihood ratio statistic(似然比统计量)Likelihood 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 (likelihood model 2) ]- [-2log (likelihood model 1)] LR statistic is a 2 with DF = number of extra parameters in model三、广义线性模型的假设检验 (1)似然比检验(续)三、广义线性模型的假设检验(续)三、广义线性模型的假设检验(续)(2)回归系数的Wald检验: Wald检验是通过比较估计系数与0的差别来进行的,其检验统计量为: 或 这里,z为正态变量。参数的可信区间如下计算:三、广义线性模型的假设检验(续)三、广义线性模型的假设检验(续)(3)比分(Score)检验: 以未包含 某个或某几个变量的模型为基础,保留模型中参数的估计值,并假设新增加的参数之系数为0,计算似然函数的一阶偏导数(又称有效比分)及信息矩阵,两者相乘即为比分检验统计量S。当样本含量较大时,S的分布近似服从2分布,自由度为检验的参数个数。 四、广义线性模型的拟合优度四、广义线性模型的拟合优度对于广义线性模型,通常用下面两种统计量度量模型的拟合优度。 (1) 偏差统计量(Deviance) (2) 广义 Pearson 2统计量( Pearson’s chi-square statistic) (3) 伪R2统计量(Pseudo-R2 ) (4) AIC、AICC、BIC、CAIC
/
本文档为【广义线性模型】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索