File: ordergibbs.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 (28 lines) | stat: -rw-r--r-- 597 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
\name{ordergibbs}
\alias{ordergibbs}
\title{Gibbs sampling for a hierarchical regression model}
\description{
 Implements Gibbs sampling for estimating a two-way table of means
under a order restriction.
}
\usage{
ordergibbs(data,m)
}
\arguments{
  \item{data}{data matrix with first two columns observed sample means and sample sizes}
  \item{m}{number of cycles of Gibbs sampling}
}

\value{
  matrix of simulated draws of the normal means where each row represents one simulated draw
}

\author{Jim Albert}

\examples{
data(iowagpa)
m=1000
s=ordergibbs(iowagpa,m)
}

\keyword{models}