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

📄 bandwidth.nrd.html

📁 本程序是基于linux系统下c++代码
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Bandwidth for density() via Normal Reference Distribution</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 bandwidth.nrd {MASS}"><tr><td>bandwidth.nrd {MASS}</td><td align="right">R Documentation</td></tr></table>
<h2>Bandwidth for density() via Normal Reference Distribution</h2>


<h3>Description</h3>

<p>
A well-supported rule-of-thumb for choosing the bandwidth of a Gaussian
kernel density estimator.
</p>


<h3>Usage</h3>

<pre>
bandwidth.nrd(x)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>x</code></td>
<td>
A data vector.
</td></tr>
</table>

<h3>Value</h3>

<p>
A bandwidth on a scale suitable for the <code>width</code> argument of
<code>density</code>.</p>

<h3>References</h3>

<p>
Venables, W. N. and Ripley, B. D. (2002)
<EM>Modern Applied Statistics with S.</EM>
Springer, equation (5.5) on page 130.
</p>


<h3>Examples</h3>

<pre>
# The function is currently defined as
function(x)
{
        r &lt;- quantile(x, c(0.25, 0.75))
        h &lt;- (r[2] - r[1])/1.34
        4 * 1.06 * min(sqrt(var(x)), h) * length(x)^(-1/5)
}
</pre>



<hr><div align="center">[Package <em>MASS</em> version 7.2-44 <a href="00Index.html">Index]</a></div>

</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -