graph_random_vote: generate random roll-call votes based on ideology space

View source: R/create_graphs.R

graph_random_voteR Documentation

generate random roll-call votes based on ideology space

Description

generate random roll-call votes based on ideology space

Usage

graph_random_vote(
  M = 101,
  D = 1,
  p = 4,
  pd = 2,
  beta = 1,
  r = 9,
  noprob = 0.05,
  Nrand = 1000,
  N = 525
)

Arguments

M

number of members

D

distance between means

p

dimension of space

pd

dimensioms where distributions are separated

beta

scaling parameter for probabilistic voting

r

radius of hypersphere for random generation

noprob

probabilit of non voting

Nrand

number of randomly generated votes

N

number of votes to sample from randomly generated votes

Value

list with random votes and ideologies

Author(s)

David Schoch

References

Aldrich, John H., and Montgomery, Jacob M., and Sparks, David B. (2014). Polarization and Ideology: Partisan Sources of Low Dimensionality in Scaled Roll Call Analyses. Political Analysis 22:435-456


schochastics/levelnet documentation built on Feb. 3, 2023, 4:20 a.m.