Glm(rms)
Glm()所属R语言包:rms
rms Version of glm
RMS版本的GLM
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function saves rms attributes with the fit object so that anova.rms, Predict, etc. can be used just as with ols and other fits. No validate or calibrate methods exist for Glm though.
此功能可以节省rms属性与合适的对象,使anova.rms,Predict,等可以使用ols和其他适合。没有validate或calibrate方法Glm虽然存在。
用法----------Usage----------
Glm(formula, family = gaussian, data = list(), weights = NULL, subset =
NULL, na.action = na.delete, start = NULL, offset = NULL, control =
glm.control(...), model = TRUE, method = "glm.fit", x = FALSE, y = TRUE,
contrasts = NULL, ...)
## S3 method for class 'Glm'
print(x, digits=4, coefs=TRUE, latex=FALSE,
title='General Linear Model', ...)
## S3 method for class 'Glm'
residuals(object, ...)
参数----------Arguments----------
参数:formula,family,data,weights,subset,na.action,start,offset,control,model,method,x,y,contrasts
see glm; for print, x is the result of Glm
看到glmprint,x是Glm
参数:...
ignored for print or passed to residuals.glm from residuals.Glm
忽略print或residuals.glmresiduals.Glm
参数:digits
number of significant digits to print
数量巨大的数字打印
参数:coefs
specify coefs=FALSE to suppress printing the table of model coefficients, standard errors, etc. Specify coefs=n to print only the first n regression coefficients in the model.
指定coefs=FALSE抑制打印表格模型系数,标准误差等指定coefs=n要打印只有第一个n回归系数的模型。
参数:latex
a logical value indicating whether information should be formatted as plain text or as LaTeX markup
一逻辑值,表示信息是否应该被格式化为纯文本或乳胶标记
参数:title
a character string title to be passed to prModFit
一个字符串标题要传递给prModFit
参数:object
a fit object created by Glm
一个合适的对象创建的Glm
值----------Value----------
a fit object like that produced by glm but with rms attributes and a class of "rms", "Glm", and "glm" or "glm.null". The g element of the fit object is the g-index.
就像用glm但rms属性和class的"rms",一个合适的对象,"Glm"和"glm"或<X >。 "glm.null"元素的契合的对象是在的g指数。
参见----------See Also----------
glm,rms,GiniMd,
glm,rms,GiniMd,
实例----------Examples----------
## Dobson (1990) Page 93: Randomized Controlled Trial :[#多布森(1990年)第93页:随机对照试验:]
counts <- c(18,17,15,20,10,20,25,13,12)
outcome <- gl(3,1,9)
treatment <- gl(3,3)
f <- glm(counts ~ outcome + treatment, family=poisson())
f
anova(f)
summary(f)
f <- Glm(counts ~ outcome + treatment, family=poisson())
# could have had rcs( ) etc. if there were continuous predictors[有(RCS)等,如果有连续预测]
f
anova(f)
summary(f, outcome=c('1','2','3'), treatment=c('1','2','3'))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|