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

📄 contr.sdif.html

📁 本程序是基于linux系统下c++代码
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Successive Differences contrast coding</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 contr.sdif {MASS}"><tr><td>contr.sdif {MASS}</td><td align="right">R Documentation</td></tr></table>
<h2>Successive Differences contrast coding</h2>


<h3>Description</h3>

<p>
A coding for unordered factors based on successive differences.
</p>


<h3>Usage</h3>

<pre>
contr.sdif(n, contrasts = TRUE)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>n</code></td>
<td>
The number of levels required.
</td></tr>
<tr valign="top"><td><code>contrasts</code></td>
<td>
Should there be <code>n - 1</code> columns orthogonal to the mean (the default)
or <code>n</code> columns spanning the space.
</td></tr>
</table>

<h3>Details</h3>

<p>
The contrast coefficients are chosen so that the coded coefficients
in a one-way layout are the differences between the means of the
second and first levels, the third and second levels, and so on.
</p>


<h3>Value</h3>

<p>
If <code>contrasts is</code> <code>TRUE</code>, a matrix with <code>n</code> rows and <code>n - 1</code> columns,
and the <code>n</code> by <code>n</code> identity matrix if <code>contrasts</code> is <code>FALSE</code>.</p>

<h3>References</h3>

<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="../../stats/html/contrast.html">contr.treatment</a></code>, <code><a href="../../stats/html/contrast.html">contr.sum</a></code>, <code><a href="../../stats/html/contrast.html">contr.helmert</a></code>
</p>


<h3>Examples</h3>

<pre>
contr.sdif(6)
</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 + -