genSincereProposals: GenSincereProposals Generates a set of sincere proposals to...

Description Usage Arguments Value Examples

View source: R/genSincereProposals.R

Description

Generates a set of sincere proposals to face the status quo policy. For the number of porposals requested, this fucntion will at random select that many voter's ideal points as the proposals to face the status quo.

Usage

1
2
3
4
genSincereProposals(
  voterIdealsGenSincereProposals,
  numberOfSincereProposalsGenSincereProposals = 1
)

Arguments

voterIdealsGenSincereProposals

The dataframe of voter ideals usually created with genVoters. If not creaeted with genVoters then the user must make sure the coordinates for the ideal points in the sumbitted dataframe are named xLocation and yLocation.

numberOfSincereProposalsGenSincereProposals

Number of sincere proposals to generate. Default is 1.

Value

outSincereProposalsDataFrame data.frame The RandomProposals data frame will have the following format. proposalID: A numeric identifier unique to the voter. xLocation: The x coordinate of the voter's ideal point. yLocation: The y coordinate of the voter's ideal point.

Examples

1
2
3
4
5
   someVoters <- genVoters(numberOfDimensionsGenVoters = 2) 
  genSincereProposals(voterIdealsGenSincereProposals = someVoters, numberOfSincereProposalsGenSincereProposals = 2) 
  
  genSincereProposals(voterIdealsGenSincereProposals = someVoters) 
  

robiRagan/voteR documentation built on Feb. 27, 2020, 6:48 p.m.