nominating {i3pack}R Documentation

Auxiliary Internal Functions

Description

Auxiliary Internal Functions

Usage

nominating(
  parties,
  lists_per_party,
  rank_cand,
  n_cand,
  party_1 = TRUE,
  party = NULL
)

Arguments

parties

See simulate_election().

lists_per_party

See simulate_election().

rank_cand

See simulate_election().

n_cand

Numeric maximum number of candidates running in a party list; defaults to 0, which is internally interpreted as the district magnitude.

party_1

Boolean: Are we generating the last (only) party list? Defaults to TRUE.

party

Optional numeric party ID.

Value

data.frame with the following variable

rank

List rank/position

candidate

Candidate ID

pos

Candidate's ideological position

list

List ID

party

Party ID


[Package i3pack version 0.1.0 Index]