View source: R/create_graphs.R
graph_random_vote | R Documentation |
generate random roll-call votes based on ideology space
graph_random_vote( M = 101, D = 1, p = 4, pd = 2, beta = 1, r = 9, noprob = 0.05, Nrand = 1000, N = 525 )
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 |
list with random votes and ideologies
David Schoch
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.