BAM | R Documentation |
Wrapper to rjags
to estimate the Bayesian Aldrich McKelvey Scaling model.
BAM(data, polarity, zhatSave = TRUE, abSave = FALSE,
resp.idealpts = FALSE, n.sample = 2500, ...)
data |
An object of class |
polarity |
integer, specifies the column in the data matrix of the stimuli that is to be set on the left side (generally this means a liberal) |
zhatSave |
Logical indicating whether the stimulus locations should be monitored |
abSave |
Logical indicating whether the intercept and slope parameters should be saved. |
resp.idealpts |
Logical indicating whether respondent ideal points should be calculated. This will only work if |
n.sample |
Number of posterior samples to save. |
... |
Other arguments to be passed down to the |
A list that will include some of the following:
zhat |
An object of class |
zhat.ci |
An object of class |
a |
An object of class |
b |
An object of class |
resp.samples |
A matrix containing the implied MCMC samples of the respondent ideal points. |
resp.sum |
A |
Hare, Christopher, David A. Armstrong II., Ryan Bakker, Royce Carroll and Keith Poole. 2015. ‘Using Bayesian Aldrich-McKelvey Scaling to Study Citizens Ideological Prefer- ences and Perceptions’ American Journal of Political Science 59(3): 759-774.
aldmck
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.