?? pls.options.html
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Set or return options for the pls package</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 pls.options {pls}"><tr><td>pls.options {pls}</td><td align="right">R Documentation</td></tr></table>
<h2>Set or return options for the pls package</h2>
<h3>Description</h3>
<p>
A function to set options for the <STRONG>pls</STRONG> package, or to return the
current options.
</p>
<h3>Usage</h3>
<pre>
pls.options(...)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>...</code></td>
<td>
a single list, a single character vector, or any number
of named arguments (<VAR>name = value</VAR>).</td></tr>
</table>
<h3>Details</h3>
<p>
If called with no arguments, or with an empty list as the single
argument, <code>pls.options</code> returns the current options.
</p>
<p>
If called with a character vector as the single argument, a list with
the arguments named in the vector are returned.
</p>
<p>
If called with a non-empty list as the single arguments, the list
elements should be named, and are treated as named arguments to the
function.
</p>
<p>
Otherwise, <code>pls.options</code> should be called with one or more named
arguments <VAR>name = value</VAR>. For each argument, the option named
<VAR>name</VAR> will be given the value <VAR>value</VAR>.
</p>
<p>
The options are saved in a variable <code>.pls.Options</code> in the global
environment, and remain in effect until the end of the session. If
the environment is saved upon exit, they will be remembered in the
next session. The `factory defaults' can be restored by removing
<code>.pls.Options</code> from the global environment.
</p>
<p>
The recognised options are:
<dl>
<dt>mvralg</dt><dd>The fit method to use in <code><a href="mvr.html">mvr</a></code> and
<code><a href="mvrCv.html">mvrCv</a></code>. The value should be one of the allowed
methods. Defaults to <code>"kernelpls"</code>. Can be overridden with
the argument <code>method</code> in <code>mvr</code> and <code>mvrCv</code>.</dd>
<dt>pcralg</dt><dd>The fit method to use in <code><a href="mvr.html">pcr</a></code>. The
value should be one of the allowed methods. Defaults to
<code>"svdpc"</code>. Can be overridden with the argument
<code>method</code> in <code>pcr</code>.</dd>
<dt>plsralg</dt><dd>The fit method to use in <code><a href="mvr.html">plsr</a></code>. The
value should be one of the allowed methods. Defaults to
<code>"kernelpls"</code>. Can be overridden with the argument
<code>method</code> in <code>plsr</code>.</dd>
</dl>
<h3>Value</h3>
<p>
A list with the (possibly changed) options. If any named argument (or
list element) was provided, the list is returned invisibly.</p>
<h3>Side Effects</h3>
<p>
If any named argument (or list element) was provided,
<code>pls.options</code> updates the elements of the option list
<code>.pls.Options</code> in the global environment.
</p>
<h3>Note</h3>
<p>
The function is a slight modification of the function
<code><a href="../../sm/html/sm.options.html">sm.options</a></code> from the package sm.
</p>
<h3>Author(s)</h3>
<p>
Bj鴕n-Helge Mevik and Ron Wehrens
</p>
<h3>Examples</h3>
<pre>
## Return current options:
pls.options()
pls.options("plsralg")
pls.options(c("plsralg", "pcralg"))
## Set options:
pls.options(plsralg = "simpls", mvralg = "simpls")
pls.options(list(plsralg = "simpls", mvralg = "simpls")) # Equivalent
pls.options()
## Restore `factory settings':
rm(.pls.Options)
pls.options()
</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 + -