Simulation from Bayesian normal sampling model

Functions for Learning Bayesian Inference

94

0

Implements Gibbs sampling for estimating a two-way table of means under a order restriction.

1 | ```
ordergibbs(data,m)
``` |

`data` |
data matrix with first two columns observed sample means and sample sizes |

`m` |
number of cycles of Gibbs sampling |

matrix of simulated draws of the normal means where each row represents one simulated draw

Jim Albert

1 2 3 | ```
data(iowagpa)
m=1000
s=ordergibbs(iowagpa,m)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.