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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|