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

📄 scores.html

📁 偏最小二乘法
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Extract Scores and Loadings from PLSR and PCR Models</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 scores {pls}"><tr><td>scores {pls}</td><td align="right">R Documentation</td></tr></table>
<h2>Extract Scores and Loadings from PLSR and PCR Models</h2>


<h3>Description</h3>

<p>
These functions extract score and loading matrices from fitted
<code>mvr</code> models.
</p>


<h3>Usage</h3>

<pre>
scores(object, ...)
## Default S3 method:
scores(object, ...)

loadings(object, ...)
## Default S3 method:
loadings(object, ...)

loading.weights(object)

Yscores(object)

Yloadings(object)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>object</code></td>
<td>
a fitted model to extract from.</td></tr>
<tr valign="top"><td><code>...</code></td>
<td>
extra arguments, currently not used.</td></tr>
</table>

<h3>Details</h3>

<p>
All functions extract the indicated matrix from the fitted model, and
will work with any object having a suitably named component.
</p>
<p>
The default <code>scores</code> and <code>loadings</code> methods also handle
<code>prcomp</code> objects (their scores and loadings components are called
<code>x</code> and <code>rotation</code>, resp.), and add an attribute
<code>"explvar"</code> with the variance explained by each component, if
this is available.  (See <code><a href="coef.mvr.html">explvar</a></code> for details.)
</p>


<h3>Value</h3>

<p>
A matrix with scores or loadings.</p>

<h3>Note</h3>

<p>
There is a <code>loadings</code> function in package <STRONG>stats</STRONG>.  It simply
returns any element named <code>"loadings"</code>.  See
<code><a href="../../stats/html/loadings.html">loadings</a></code> for details.  The function can be
accessed as <code>stats::loadings(...)</code>.
</p>


<h3>Author(s)</h3>

<p>
Ron Wehrens and Bj鴕n-Helge Mevik
</p>


<h3>See Also</h3>

<p>
<code><a href="mvr.html">mvr</a></code>, <code><a href="coef.mvr.html">coef.mvr</a></code>
</p>


<h3>Examples</h3>

<pre>
data(yarn)
plsmod &lt;- plsr(density ~ NIR, 6, data = yarn)
scores(plsmod)
loadings(plsmod)[,1:4]
</pre>



<hr><div align="center">[Package <em>pls</em> version 2.0-1 <a href="00Index.html">Index]</a></div>

</body></html>

⌨️ 快捷键说明

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