summarise(vcdExtra)
summarise()所属R语言包:vcdExtra
Brief Summary of Model Fit for glm and loglm Models
的模型拟合为GLM和loglm模式的小结
译者:生物统计家园网 机器人LoveR
描述----------Description----------
For glm objects, the print and summary methods give too much information if all one wants to see is a brief summary of model goodness of fit, and there is no easy way to display a compact comparison of model goodness of fit for a collection of models fit to the same data.
glm对象,print和summary方法得到的信息太多了,如果所有的人愿意看到的是一个简短的摘要,模型的拟合优度,和有没有简单的方法来显示一个款型合身的集合到同一个数据模型的拟合优度比较紧凑。
All loglm models have equivalent glm forms, but the print and summary methods give quite different results
所有的loglm模型具有相同的的GLM形式,但print和summary方法会带来完全不同的结果
summarise provides a brief summary for one or more glm or loglm models This implementation is experimental, and is subject to change.
summarise提供了一个简单的总结为一个或多个glm或loglm模型的实现是实验性的,是改变。
用法----------Usage----------
summarise(object, ...)
## S3 method for class 'glm'
summarise(object, ..., test = NULL)
## S3 method for class 'glmlist'
summarise(object, ..., test = NULL, sortby=NULL)
## S3 method for class 'loglm'
summarise(object, ...)
## S3 method for class 'loglmlist'
summarise(object, ..., sortby=NULL)
参数----------Arguments----------
参数:object, ...
objects of class glm, typically the result of a call to glm, or a list of objects for the glmlist method. Alternatively, objects of class loglm or a "loglmlist" object
类的对象glm,通常glm,或列表中的对象glmlist方法调用的结果。另外,对象的类loglm或“loglmlist”对象
参数:test
Not used in the current implementation.
在当前的实现不使用。
参数:sortby
For glmlist and loglmlist objects, either a numeric or character string specifying the column in the result for which the rows are sorted (in decreasing order).
对于glmlist和loglmlist对象,无论是数字或字符串指定列中的行进行排序的结果为(按递减顺序)。
值----------Value----------
A data frame (also of class anova) with columns c("LR Chisq", "Df", "Pr(>Chisq)", "AIC", "BIC"). Row names are taken from the names of the model object(s).
一个数据框(类anova)的列c("LR Chisq", "Df", "Pr(>Chisq)", "AIC", "BIC")。行名取自的模型对象的名称()。
(作者)----------Author(s)----------
Michael Friendly
参见----------See Also----------
glmlist, loglmlist, modFit
glmlist,loglmlist,modFit
实例----------Examples----------
data(Mental)
indep <- glm(Freq ~ mental+ses,
family = poisson, data = Mental)
summarise(indep)
Cscore <- as.numeric(Mental$ses)
Rscore <- as.numeric(Mental$mental)
coleff <- glm(Freq ~ mental + ses + Rscore:ses,
family = poisson, data = Mental)
roweff <- glm(Freq ~ mental + ses + mental:Cscore,
family = poisson, data = Mental)
linlin <- glm(Freq ~ mental + ses + Rscore:Cscore,
family = poisson, data = Mental)
# make a glmlist[一个glmlist]
mods <- glmlist(indep, coleff, roweff, linlin)
summarise(mods)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|