⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 surf.ls.html

📁 本程序是基于linux系统下c++代码
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Fits a Trend Surface by Least-squares</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 surf.ls {spatial}"><tr><td>surf.ls {spatial}</td><td align="right">R Documentation</td></tr></table>
<h2>Fits a Trend Surface by Least-squares</h2>


<h3>Description</h3>

<p>
Fits a trend surface by least-squares.
</p>


<h3>Usage</h3>

<pre>
surf.ls(np, x, y, z)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>np</code></td>
<td>
degree of polynomial surface
</td></tr>
<tr valign="top"><td><code>x</code></td>
<td>
x coordinates or a data frame with columns <code>x</code>, <code>y</code>, <code>z</code>
</td></tr>
<tr valign="top"><td><code>y</code></td>
<td>
y coordinates
</td></tr>
<tr valign="top"><td><code>z</code></td>
<td>
z coordinates. Will supersede <code>x$z</code>
</td></tr>
</table>

<h3>Value</h3>

<p>
list with components
</p>
<table summary="R argblock">
<tr valign="top"><td><code>beta</code></td>
<td>
the coefficients
</td></tr>
<tr valign="top"><td><code>x</code></td>
<td>
</td></tr>
<tr valign="top"><td><code>y</code></td>
<td>
</td></tr>
<tr valign="top"><td><code>z</code></td>
<td>
and others for internal use only.
</td></tr>
</table>

<h3>References</h3>

<p>
Ripley, B. D. (1981) <EM>Spatial Statistics.</EM> Wiley.
</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="trmat.html">trmat</a></code>, <code><a href="surf.gls.html">surf.gls</a></code>
</p>


<h3>Examples</h3>

<pre>
library(MASS)  # for eqscplot
data(topo, package="MASS")
topo.kr &lt;- surf.ls(2, topo)
trsurf &lt;- trmat(topo.kr, 0, 6.5, 0, 6.5, 50)
eqscplot(trsurf, type = "n")
contour(trsurf, add = TRUE)
points(topo)

eqscplot(trsurf, type = "n")
contour(trsurf, add = TRUE)
plot(topo.kr, add = TRUE)
title(xlab= "Circle radius proportional to Cook's influence statistic")
</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 + -