<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Score test for the Box-Cox transformation of the response</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for score.s"><tr><td>score.s</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>Score test for the Box-Cox transformation of the response</h2>

<h3>Description</h3>

<p>Computes the approximate score test statistic for the Box-Cox transformation</p>


<h3>Usage</h3>

<pre>
score.s(x, y, la, tol = 1e-20)
lambda.mle(x, y, init = c(-2, 2), tol = 1e-04)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>x</code></td>
<td>
<p>a matrix or data frame containing the explanatory variables.</p>
</td></tr>
<tr valign="top"><td><code>y</code></td>
<td>
<p>the response: a vector of length the number of rows of <code>x</code>.</p>
</td></tr>
<tr valign="top"><td><code>la</code></td>
<td>
<p>the value of the lambda parameter.</p>
</td></tr>
<tr valign="top"><td><code>tol</code></td>
<td>
<p>tolerance value used to check for full rank matrix.</p>
</td></tr>
<tr valign="top"><td><code>init</code></td>
<td>
<p>range of values to search for MLE.</p>
</td></tr>
</table>


<h3>Details</h3>

<p>See pag. 82&ndash;86 of Atkinson and Riani (2000).</p>


<h3>Value</h3>

<p>Return a list with two components:
</p>
<table summary="R valueblock">
<tr valign="top"><td><code>Score</code></td>
<td>
<p>the value of the score test statistic</p>
</td></tr>
<tr valign="top"><td><code>Likelihood</code></td>
<td>
<p>the value of the likelihood</p>
</td></tr>
</table>


<h3>Author(s)</h3>

<p>Originally written for S-Plus by:
Kjell Konis <a href="mailto:kkonis@insightful.com">kkonis@insightful.com</a> and Marco Riani <a href="mailto:mriani@unipr.it">mriani@unipr.it</a> <br />
Ported to R by Luca Scrucca <a href="mailto:luca@stat.unipg.it">luca@stat.unipg.it</a></p>


<h3>References</h3>

<p>Atkinson, A.C. and Riani, M. (2000),  <em>Robust Diagnostic Regression Analysis</em>, First Edition. New York: Springer, Chapter 4.</p>


<h3>See Also</h3>

<p><code>fwdsco</code>, <code>fwdlm</code>, <code>fwdglm</code>.
</p>


</body></html>
