forked from jrnold/bugs-examples-in-stan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.Rmd
More file actions
56 lines (48 loc) · 3.69 KB
/
index.Rmd
File metadata and controls
56 lines (48 loc) · 3.69 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
title: "Simon Jackman's Bayesian Model Examples in Stan"
author: "Jeffrey B. Arnold"
date: "`r Sys.Date()`"
site: "bookdown::bookdown_site"
output:
bookdown::gitbook: default
documentclass: book
bibliography:
- "bayes.bib"
biblio-style: apalike
link-citations: yes
---
# Preface {-}
This work contains the Bayesian model examples written by Simon Jackman and previously available on his website.
These were originally written in WinBUGS or JAGS.
I have translated these examples into Stan and revised or edited them as appropriate.
This work is licensed under the [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/)
1. [Undervote](undervote): difference of two independent proportions; racial differences in self-reported undervoting
1. [Cancer](cancer): difference of two independent proportions; differences in rates of lung cancer by smoking
1. [Florida](florida): learning about an unknown proportion from survey data; using survey data to update beliefs about support for Bush in Florida in the 2000 presidential election campaign
1. [Turnout](turnout2005): logit/probit models for binary response; voter turnout as a function of covariates
1. [Co-Sponsor](cosponsor): computing auxiliary quantities from MCMC output, such as residuals, goodness of fit; logit model of legislative co-sponsorship
1. [Reagan](reagan): linear regression with AR(1) disturbances; monthly presidential approval ratings for Ronald Reagan
1. [Political Sophistication](sophistication): generalized latent variable modeling (item-response modeling with a mix of binary and ordinal responses); assessing levels of political knowledge among survey respondents in France
1. [Legislators](legislators): generalized latent variable modeling (two-parameter item-response model); estimating legislative ideal points from roll call data
1. [Judges](judges): item response modeling; estimating ideological locations of Supreme Court justices via analysis of decisions
1. [Resistant](resistant): outlier-resistant regression via the t density; votes in U.S. Congressional elections, 1956-1994; incumbency advantage.
1. [House of Commons](uk92): analysis of compositional data; vote shares for candidates to the U.K. House of Commons
1. [Campaign](campaign): tracking a latent variable over time; support for candidates over the course of an election campaign, as revealed by polling from different survey houses.
1. [Aspirin](aspirin): meta-analysis via hierarchical modeling of treatment effects; combining numerous experimental studies of effect of aspirin on surviving myocardial infarction (heart attack)
1. [Corporatism](corporatism) hierarchical linear regression model, normal errors; joint impact of left-wing governments and strength of trade unions in structuring the determinants of economic growth
1. [Bimodal](bimodal): severe pattern of missingness in bivariate normal data; bimodal density over correlation coefficient
1. [Unidentified](unidentified): the consequences of over-parameterization; contrived example from Carlin and Louis
1. [Engines](engines): modeling truncated data; time to failure, engines being bench-tested at different operating temperatures
1. [Truncated](truncated): Example of sampling from a truncated normal distribution.
1. [Generalized Beetles](genbeetles): Generalizing link functions for binomial GLMs.
1. [Negative Binomial](negbin): Example of a negative binomial regression of homicides
## Dependencies {-}
The R packages, Stan models, and datasets needed to run the code examples can be installed with
```{r eval=FALSE}
# install.packages("devtools")
devtools::install_github("jrnold/jackman-bayes", subdir = "bayesjackman")
```
## Colonophon {-}
```{r}
sessionInfo()
```