gt_maj_pref: Majority Preference Relation.

Description Usage Arguments Examples

View source: R/gt_spatial_preferences.R

Description

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

Usage

1
gt_maj_pref(P, a, b, method = "euclidean", q = 0.5)

Arguments

P

matrix of ideal points

a

Alternative policy

b

Status quo policy

method

Distance metric, deafulats to Euclidean

Examples

1
gt_maj_pref(matrix(c(0, 0, .5, 1, 1, 0), 2), 0:1, c(.5,.5))

macartan/hop documentation built on Jan. 4, 2022, 9:21 p.m.