Skip to contents

Bayesian Aldrich-McKelvey scaling (stub)

Usage

morie_spatial_voting_bayesian_am(
  Z,
  n_samples = 1000L,
  burn_in = 200L,
  prior_sd = 10
)

Arguments

Z

Perceptual placement matrix.

n_samples

MCMC samples.

burn_in

Burn-in length.

prior_sd

Prior SD on stimulus positions.

Value

List: zeta_mean, zeta_sd (posterior stimulus positions), sigma2, n_samples, engine.

References

Hare, C., Armstrong, D. A., Bakker, R., Carroll, R., and Poole, K. T. (2015). "Using Bayesian Aldrich-McKelvey Scaling to Study Citizens' Ideological Preferences and Perceptions." AJPS, 59(3).

Examples

morie_spatial_voting_bayesian_am(matrix(rnorm(50), 10, 5))
#> $zeta_mean
#> [1] -0.3207778  0.8697860 -0.0642047 -0.3397013 -0.1451022
#> 
#> $engine
#> [1] "basicspace (deterministic AM; full Bayesian not ported)"
#>