File: mnormt.twosided.Rd

package info (click to toggle)
r-cran-learnbayes 2.15.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,864 kB
  • sloc: sh: 15; makefile: 2
file content (40 lines) | stat: -rw-r--r-- 962 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
\name{mnormt.twosided}
\alias{mnormt.twosided}
\title{Bayesian test of a two-sided hypothesis about a normal mean}
\description{
 Bayesian test that a normal mean is equal to a specified
 value using a normal prior}
\usage{
mnormt.twosided(m0, prob, t, data)
}
\arguments{
  \item{m0}{value of the mean to be tested }
  \item{prob}{prior probability of the hypothesis}
  \item{t}{vector of values of the prior standard
  deviation under the alternative hypothesis}
  \item{data}{vector containing the sample mean,
  the sample size, and the known value of the
  population standard deviation}
}

\value{
  \item{bf}{vector of values of the Bayes factor
  in support of the null hypothesis}
  \item{post}{vector of posterior probabilities
  of the null hypothesis}
}

\author{Jim Albert}

\examples{
m0=170
prob=.5
tau=c(.5,1,2,4,8)
samplesize=10
samplemean=176
popsd=3
data=c(samplemean,samplesize,popsd)
mnormt.twosided(m0,prob,tau,data)
}

\keyword{models}