norm1UV.2sided
returns a list of 5 functions:
- logm
-
Returns a list of three vectors: the log marginal density under
the null hypothesis (
logm0
), the log marginal density under the
alternative hypothesis (logm1
), the log marginal density
(logm
). Each are evaluated at the observed data provided. The
function takes the following usage:
logm(xbar, s2, n, theta0, prob, mu, scale, shape, rate)
-
xbar
: Vector. Observed sample mean from the experiment.
-
s2
: Vector. Observed sample standard deviation from the
experiment.
-
n
: Scalar. Sample size.
- Remaining parameters described above for
norm1UV.2sided
.
- logbf
-
Returns a vector. The value of the log Bayes Factor given the observed
data provided and the prior parameters specified. The function has the
following usage:
logbf(xbar, s2, n, theta0, prob, mu, scale, shape, rate)
For details on the arguments, see logm
above.
- prior
-
Returns a vector. The value of the prior density. The function has the
following usage:
prior(theta, sigma2, theta0, prob, mu, scale, shape, rate)
-
theta
: Vector. The quantiles of the mean at which to
evaluate the prior.
-
sigma2
: Vector. The quantiles of the standard deviation at
which to evaluate the prior.
- Remaining parameters described above for
norm1UV.2sided
- post
-
Returns a vector. The value of the posterior density. The function has the
following usage:
post(theta, sigma2, xbar, s2, n, theta0, prob, mu, scale,
shape, rate)
-
theta
: Vector. The quantiles of the mean at which to
evaluate the posterior.
-
sigma2
: Vector. The quantiles of the standard deviation at
which to evaluate the psterior.
-
xbar
: Vector. Observed sample mean from the experiment.
-
s2
: Vector. Observed sample standard deviation from the
experiment.
-
n
: Scalar. Sample size.
- Remaining parameters described above for
norm1UV.2sided
- ssd.norm1UV.2sided
-
Sample size calculations for this particular set-up. The function has the
following usage:
ssd.norm1UV.2sided(alpha, w, theta0, prob, mu, scale, shape,
rate, m = 2500, minn = 3, maxn = 1000, all = FALSE)
See ssd
for more details. The suite-specific parameters are
described above for norm1UV.2sided
. Note that this example will not
work with ssd.norm1KV
.