BAM: Bayesian Aldrich McKelvey Scaling

View source: R/asmcjr.r

BAMR Documentation

Bayesian Aldrich McKelvey Scaling

Description

Wrapper to rjags to estimate the Bayesian Aldrich McKelvey Scaling model.

Usage

BAM(data, polarity, zhatSave = TRUE, abSave = FALSE,
    resp.idealpts = FALSE, n.sample = 2500, ...)

Arguments

data

An object of class bamPrep that contains data for scaling.

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 self is an element of the data and if abSave=TRUE.

n.sample

Number of posterior samples to save.

...

Other arguments to be passed down to the jags.model function. In particular, you may want to specify n.chains (which defaults to 2), n.adapt (which defaults to 10000) and/or inits which, by dfeault, uses the point configuration from the original AM scaling run.

Value

A list that will include some of the following:

zhat

An object of class mcmc.list containing the sampled values of the stimulus ideal point parameters.

zhat.ci

An object of class aldmck_ci containing summary information (mean, sd, lower and upper credible intervals) of the stimulus points

a

An object of class mcmc.list containing the sampled individual intercept values.

b

An object of class mcmc.list containing the sampled individual slope values.

resp.samples

A matrix containing the implied MCMC samples of the respondent ideal points.

resp.sum

A data.frame containing mean, sd, lower and upper credible intervals of the individual ideal points.

References

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.

See Also

aldmck


davidaarmstrong/asmcjr documentation built on June 29, 2024, 12:07 p.m.