找回密码
 注册
查看: 3082|回复: 0

R语言:anova.glm()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-16 19:16:04 | 显示全部楼层 |阅读模式
anova.glm(stats)
anova.glm()所属R语言包:stats

                                        Analysis of Deviance for Generalized Linear Model Fits
                                         越轨适合用于广义线性模型分析

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Compute an analysis of deviance table for one or more generalized linear model fits.
为一个或多个广义线性模型拟合计算,分析偏差表。


用法----------Usage----------


## S3 method for class 'glm'
anova(object, ..., dispersion = NULL, test = NULL)



参数----------Arguments----------

参数:object, ...
objects of class glm, typically the result of a call to glm, or a list of objects for the "glmlist" method.
类对象glm,glm,或列表调用一个典型的结果objects"glmlist"方法。


参数:dispersion
the dispersion parameter for the fitting family. By default it is obtained from the object(s).
装修家庭分散参数。默认情况下它是从对象(S)。


参数:test
a character string, (partially) matching one of "Chisq",  "LRT", "Rao", "F" or "Cp". See stat.anova.
一个字符串,(部分)匹配"Chisq","LRT","Rao","F"或"Cp"。看到stat.anova。


Details

详情----------Details----------

Specifying a single object gives a sequential analysis of deviance table for that fit.  That is, the reductions in the residual deviance as each term of the formula is added in turn are given in as the rows of a table, plus the residual deviances themselves.
指定一个单一的对象,给出了一个合身的偏差表序列分析。也就是说,每个公式的长期增加反过来减少残余偏差给出表中的行,再加上自己的剩余deviances。

If more than one object is specified, the table has a row for the residual degrees of freedom and deviance for each model. For all but the first model, the change in degrees of freedom and deviance is also given. (This only makes statistical sense if the models are nested.)  It is conventional to list the models from smallest to largest, but this is up to the user.
如果指定了多个对象,表中有一排剩余的自由,并为每个模型的偏差度。第一种模式,在自由和偏差度的变化,为所有,但也给出了。 (这不仅使统计意义上,如果模型嵌套。),它是常规列出的车型,从最小到最大,但这是用户。

The table will optionally contain test statistics (and P values) comparing the reduction in deviance for the row to the residuals. For models with known dispersion (e.g., binomial and Poisson fits) the chi-squared test is most appropriate, and for those with dispersion estimated by moments (e.g., gaussian, quasibinomial and quasipoisson fits) the F test is most appropriate.  Mallows' Cp statistic is the residual deviance plus twice the estimate of σ^2 times the residual degrees of freedom, which is closely related to AIC (and a multiple of it if the dispersion is known).  You can also choose "LRT" and  "Rao" for likelihood ratio tests and Rao's efficient score test.  The former is synonymous with "Chisq" (although both have  an asymptotic chi-square distribution).
该表将选择包含检验统计量(P值)比较减少的为残差行的偏差。与已知的分散(例如,二项分布与泊松配合)模型的卡方检验是最合适的,和那些由矩估计的分散(例如,gaussian,quasibinomial和quasipoisson配合)F检验是最合适的。锦葵Cp统计是残余偏差,加上两次σ^2倍的残留度的自由,这是密切相关的工商局(估计的多,如果分散)。您也可以选择"LRT"和"Rao"似然比测试和饶的高效得分测试。前者是"Chisq"(虽然都有一个渐近卡方分布)的代名词。

The dispersion estimate will be taken from the largest model, using the value returned by summary.glm.  As this will in most cases use a Chisquared-based estimate, the F tests are not based on the residual deviance in the analysis of deviance table shown.
分散估计将采取最大的模型,使用summary.glm的返回值。因为这会在大多数情况下使用Chisquared基于估计,F检验的基础上在分析偏差表所示的残余偏差。


值----------Value----------

An object of class "anova" inheriting from class "data.frame".
一个类的对象"anova"类"data.frame"继承。


警告----------Warning----------

The comparison between two or more models by anova or anova.glmlist will only be valid if they are fitted to the same dataset. This may be a problem if there are missing values and R's default of na.action = na.omit is used, and anova.glmlist will detect this with an error.
两个或更多anova或anova.glmlist的模型之间的比较,只会是有效的,如果他们被安装到相同的数据集。这可能是一个问题,如果有缺失值和R的默认na.action = na.omit,anova.glmlist会检测到一个错误。


参考文献----------References----------

Generalized linear models. Chapter 6 of Statistical Models in S eds J. M. Chambers and T. J. Hastie, Wadsworth & Brooks/Cole.

参见----------See Also----------

glm, anova.
glm,anova。

drop1 for so-called "type II" anova where each term is dropped one at a time respecting their hierarchy.
drop1所谓的“II型ANOVA每学期被丢弃在尊重他们的层次。


举例----------Examples----------


## --- Continuing the Example from  '?glm':[#---继续从“GLM?”为例:]

anova(glm.D93)
anova(glm.D93, test = "Cp")
anova(glm.D93, test = "Chisq")
glm.D93a <- update(glm.D93, ~treatment*outcome) ## equivalent to Pearson Chi-square[#相当于Pearson卡方]
anova(glm.D93, glm.D93a, test = "Rao")

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-1-24 13:51 , Processed in 0.024651 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表