Description Usage Arguments Examples
View source: R/gt_spatial_preferences.R
Assesses how much majorities gain from a policy change in spatial model
1 | gt_maj_gain(P, a, b, method = "euclidean")
|
P |
matrix of ideal points |
a |
Alternative policy |
b |
Status quo policy |
method |
Distance metric, deafulats to Euclidean |
1 | gt_maj_gain(matrix(c(0, 0, .5, 1, 1, 0), 2), 0:1, c(.5,.5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.