slm.methods(SparseM)
slm.methods()所属R语言包:SparseM
Methods for slm objects
方法SLM对象的
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Summarize, print, and extract objects from slm objects.
总结一下,打印,和提取物体从slm对象。
用法----------Usage----------
## S3 method for class 'slm'
summary(object, correlation, ...)
## S3 method for class 'mslm'
summary(object, ...)
## S3 method for class 'slm'
print(x, digits, ...)
## S3 method for class 'summary.slm'
print(x, digits, symbolic.cor, signif.stars, ...)
## S3 method for class 'slm'
fitted(object, ...)
## S3 method for class 'slm'
residuals(object, ...)
## S3 method for class 'slm'
coef(object, ...)
## S3 method for class 'slm'
extractAIC(fit, scale = 0, k = 2, ...)
## S3 method for class 'slm'
deviance(object, ...)
参数----------Arguments----------
参数:object,x,fit
object of class slm.
对象类slm。
参数:digits
minimum number of significant digits to be used for most numbers.
重大数字被用于大多数数字的最小数目。
参数:scale
optional numeric specifying the scale parameter of the model, see 'scale' in 'step'. Currently only used in the '"lm"' method, where 'scale' specifies the estimate of the error variance, and 'scale = 0' indicates that it is to be estimated by maximum likelihood.
可选的数字指定的尺度参数的模型,请参阅“规模”,在“步骤”。目前只用在“LM”的方法,在“规模”指定的误差方差的估计,和“规模= 0”表明它是通过最大似然估计。
参数:k
numeric specifying the "weight" of the equivalent degrees of freedom ('edf') part in the AIC formula.
数字指定的“权重”相当程度的自由(EDF)的AIC公式中的一部分。
参数:symbolic.cor
logical; if TRUE, the correlation of coefficients will be printed. The default is FALSE
逻辑,如果TRUE,相关系数将被打印出来。默认的是FALSE
参数:signif.stars
logical; if TRUE, P-values are additionally encoded visually as “significance stars” in order to help scanning of long coefficient tables. It defaults to the "show.signif.stars" slot of "options".
逻辑,如果TRUE,P-值额外编码的视觉“的意义星星”,以帮助长系数表扫描。默认为“show.signif.stars”槽“选项”。
参数:correlation
logical; if TRUE, the correlation matrix of the estimated parameters is returned and printed.
逻辑,如果TRUE,相关矩阵的估计的参数返回和印刷。
参数:...
additional arguments passed to methods.
额外的参数传递给方法。
值----------Value----------
print.slm and print.summary.slm return invisibly. fitted.slm, residuals.slm, and coef.slm return the corresponding components of the slm object. extractAIC.slm and deviance.slm return the AIC and deviance values of the fitted object.
print.slm和print.summary.slm返回无形。 fitted.slm,residuals.slm和coef.slm返回相应的元器件slm对象。 extractAIC.slm和deviance.slm返回的AIC和偏差值的拟合对象。
(作者)----------Author(s)----------
Roger Koenker
参考文献----------References----------
http://www.econ.uiuc.edu/~roger/research
参见----------See Also----------
slm
slm
实例----------Examples----------
data(lsq)
X <- model.matrix(lsq) #extract the design matrix[提取的设计矩阵]
y <- model.response(lsq) # extract the rhs[提取的RHS]
X1 <- as.matrix(X)
slm.time <- unix.time(slm(y~X1-1) -> slm.o) # pretty fast[蛮快的]
cat("slm time =",slm.time,"\n")
cat("slm Results: Reported Coefficients Truncated to 5 ","\n")
sum.slm <- summary(slm.o)
sum.slm$coef <- sum.slm$coef[1:5,]
sum.slm
fitted(slm.o)[1:10]
residuals(slm.o)[1:10]
coef(slm.o)[1:10]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|