<!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: Compute the efficacy boundary (modified Haybittle-Peto) for...</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="https://rpkg.net/assets/examples.css" />
</head><body>

<table width="100%" summary="page for mHP.c"><tr><td>mHP.c</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>Compute the efficacy boundary (modified Haybittle-Peto) for the
final (third) stage</h2>

<h3>Description</h3>

<p>Compute the efficacy boundary (modified Haybittle-Peto) for the
final (third) stage
</p>


<h3>Usage</h3>

<pre>
mHP.c(prevalence, N, cov.J, mu.prime, Sigma.prime, alpha, btilde, b, theta)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>prevalence</code></td>
<td>
<p>the vector of prevalences between 0 and 1 summing
to 1. <i>J</i>, the number of groups, is implicitly the length
of this vector and should be at least 2.</p>
</td></tr>
<tr valign="top"><td><code>N</code></td>
<td>
<p>a three-vector of total sample size at each stage</p>
</td></tr>
<tr valign="top"><td><code>cov.J</code></td>
<td>
<p>the 3 x 3 covariance matrix for Z_J at each of the
three stages</p>
</td></tr>
<tr valign="top"><td><code>mu.prime</code></td>
<td>
<p>a list of <i>J</i> mean vectors, each of length
<i>J-1</i> representing the conditional means of all the other
<i>Z_j</i> given <i>Z_i</i>. This mean does not account for the
conditioned value of <i>Z_i</i> and so has to be multiplied by
that during use!</p>
</td></tr>
<tr valign="top"><td><code>Sigma.prime</code></td>
<td>
<p>a list of <i>J</i> covariance matrices, each
<i>J-1</i> by <i>J-1</i> representing the conditional covariances
all the other <i>Z_j</i> given <i>Z_i</i></p>
</td></tr>
<tr valign="top"><td><code>alpha</code></td>
<td>
<p>the amount of type I error to spend</p>
</td></tr>
<tr valign="top"><td><code>btilde</code></td>
<td>
<p>the futility boundary</p>
</td></tr>
<tr valign="top"><td><code>b</code></td>
<td>
<p>the efficacy boundary for the first two stages</p>
</td></tr>
<tr valign="top"><td><code>theta</code></td>
<td>
<p>the effect size on the probability scale</p>
</td></tr>
</table>


</body></html>
