📄 trls.influence.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Regression diagnostics for trend surfaces</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../../R.css">
</head><body>
<table width="100%" summary="page for trls.influence {spatial}"><tr><td>trls.influence {spatial}</td><td align="right">R Documentation</td></tr></table>
<h2>Regression diagnostics for trend surfaces</h2>
<h3>Description</h3>
<p>
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 <code>surf.ls</code>.
</p>
<h3>Usage</h3>
<pre>
trls.influence(object)
## S3 method for class 'trls':
plot(x, border = "red", col = NA, pch = 4, cex = 0.6,
add = FALSE, div = 8, ...)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>object, x</code></td>
<td>
Fitted trend surface model from <code>surf.ls</code>
</td></tr>
<tr valign="top"><td><code>div</code></td>
<td>
scaling factor for influence circle radii in <code>plot.trls</code>
</td></tr>
<tr valign="top"><td><code>add</code></td>
<td>
add influence plot to existing graphics if <code>TRUE</code>
</td></tr>
<tr valign="top"><td><code>border, col, pch, cex, ...</code></td>
<td>
additional graphical parameters
</td></tr>
</table>
<h3>Value</h3>
<p>
<code>trls.influence</code> returns a list with components:
</p>
<table summary="R argblock">
<tr valign="top"><td><code>r</code></td>
<td>
raw residuals as given by <code>residuals.trls</code>
</td></tr>
<tr valign="top"><td><code>hii</code></td>
<td>
diagonal elements of the Hat matrix
</td></tr>
<tr valign="top"><td><code>stresid</code></td>
<td>
standardised residuals
</td></tr>
<tr valign="top"><td><code>Di</code></td>
<td>
Cook's statistic
</td></tr>
</table>
<h3>References</h3>
<p>
Unwin, D. J., Wrigley, N. (1987) Towards a general-theory of
control point distribution effects in trend surface models.
<EM>Computers and Geosciences,</EM> <B>13</B>, 351–355.
</p>
<p>
Venables, W. N. and Ripley, B. D. (2002)
<EM>Modern Applied Statistics with S.</EM> Fourth edition. Springer.
</p>
<h3>See Also</h3>
<p>
<code><a href="surf.ls.html">surf.ls</a></code>, <code><a href="../../stats/html/influence.measures.html">influence.measures</a></code>, <code><a href="../../stats/html/plot.lm.html">plot.lm</a></code>
</p>
<h3>Examples</h3>
<pre>
library(MASS) # for 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)
</pre>
<hr><div align="center">[Package <em>spatial</em> version 7.2-44 <a href="00Index.html">Index]</a></div>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -