Learn R Programming

powerindexR (version 1.6)

MWC: Obtain the minimal winning coalitions

Description

This function determines the minimal winning coalitions in a weighted majority game.

Usage

MWC(quota, weights)

Value

Number of Minimal Winning Coalitions

Total amount of Minimal Winning Coalitions.

Minimal Winning Coalitions

Each row indicates a binary representation of each Minimal Winning Coalition.

Author

Livino M. Armijos-Toro, Jose M. Alonso-Meijide, Manuel A. Mosquera, Alejandro Saavedra-Nieves.

Arguments

quota

Numerical value that represents the majority in a given voting.

weights

Numerical vector of dimension \(n\) that indicates the weights of \(n\) agents in a given voting.

Examples

Run this code
weights<-c(137,85,71,32,9,8,5,2,1) 
quota<-176
MWC(quota,weights)

Run the code above in your browser using DataLab