Description Usage Format Details Source References Examples

This data set gives means and (squared) standard errors of percentages of conceptions obtained from samples for six bulls.

1 | ```
data("SnedecorCochran")
``` |

The data frame contains the following columns:

no | `character` | identifier |

n | `numeric` | sample size |

mean | `numeric` | mean |

var | `numeric` | variance (squared standard error) |

Quoting from Snedecor and Cochran (1967), Sec. 10.18: “In research on artificial insemination of cows, a series of semen samples from a bull are sent out and tested for their ability to produce conceptions. The following data from a larger set kindly supplied by Dr. G. W. Salisbury, show the percentages of conceptions obtained from the samples for six bulls.”

J. Hartung, G. Knapp, and B.K. Sinha. *Statistical
meta-analysis with applications*. Wiley, Hoboken, NJ, USA, 2008.

G.W. Snedecor and W.G. Cochran. *Statistical Methods*.
Iowa State University Press, Ames, IA, USA, 6th edition, 1967.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ```
data("SnedecorCochran")
## Not run:
# analyze using uniform prior:
bma1 <- bayesmeta(y=SnedecorCochran[,"mean"],
sigma=sqrt(SnedecorCochran[,"var"]),
label=SnedecorCochran[,"no"],
tau.prior="uniform")
# analyze using Jeffreys prior:
bma2 <- bayesmeta(y=SnedecorCochran[,"mean"],
sigma=sqrt(SnedecorCochran[,"var"]),
label=SnedecorCochran[,"no"],
tau.prior="Jeffreys")
# compare results:
print(bma1)
print(bma2)
forestplot(bma1)
forestplot(bma2)
## End(Not run)
``` |

bayesmeta documentation built on Feb. 6, 2018, 9:01 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.