Description Usage Arguments Examples
View source: R/gt_spatial_preferences.R
Let P be a d*n
vecotr of ideal points for n individuals in d dimensions a and b are d*1 policy vectors gt_maj_pref(P,a,b)
reports whether a strict majority of individuals strictly prefer a to b
1 | gt_maj_pref(P, a, b, method = "euclidean", q = 0.5)
|
P |
matrix of ideal points |
a |
Alternative policy |
b |
Status quo policy |
method |
Distance metric, deafulats to Euclidean |
1 | gt_maj_pref(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.