trls.influence(spatial)
trls.influence()所属R语言包:spatial
Regression diagnostics for trend surfaces
趋势面回归诊断
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function provides the basic quantities which are used in forming a variety of diagnostics for checking the quality of regression fits for trend surfaces calculated by surf.ls.
此功能提供了基本的数量使用在形成各种诊断检查的质量,回归适用于趋势面计算的surf.ls。
用法----------Usage----------
trls.influence(object)
## S3 method for class 'trls'
plot(x, border = "red", col = NA, pch = 4, cex = 0.6,
add = FALSE, div = 8, ...)
参数----------Arguments----------
参数:object, x
Fitted trend surface model from surf.ls
合身趋势面模型surf.ls
参数:div
scaling factor for influence circle radii in plot.trls
缩放因子的影响圆弧半径plot.trls
参数:add
add influence plot to existing graphics if TRUE
影响图添加到现有的图形,如果TRUE
参数:border, col, pch, cex, ...
additional graphical parameters
额外的图形参数
值----------Value----------
trls.influence returns a list with components:
trls.influence返回一个列表的组件:
参数:r
raw residuals as given by residuals.trls
原残差由residuals.trls
参数:hii
diagonal elements of the Hat matrix
的帽子矩阵的对角线元素
参数:stresid
standardised residuals
标准化残差
参数:Di
Cook's statistic
库克统计
参考文献----------References----------
control point distribution effects in trend surface models. Computers and Geosciences, 13, 351–355.
Modern Applied Statistics with S. Fourth edition. Springer.
参见----------See Also----------
surf.ls, influence.measures, plot.lm
surf.ls,influence.measures,plot.lm
实例----------Examples----------
library(MASS) # for eqscplot[为eqscplot]
data(topo, package = "MASS")
topo2 <- surf.ls(2, topo)
infl.topo2 <- trls.influence(topo2)
(cand <- as.data.frame(infl.topo2)[abs(infl.topo2$stresid) > 1.5, ])
cand.xy <- topo[as.integer(rownames(cand)), c("x", "y")]
trsurf <- trmat(topo2, 0, 6.5, 0, 6.5, 50)
eqscplot(trsurf, type = "n")
contour(trsurf, add = TRUE, col = "grey")
plot(topo2, add = TRUE, div = 3)
points(cand.xy, pch = 16, col = "orange")
text(cand.xy, labels = rownames(cand.xy), pos = 4, offset = 0.5)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|