Description Usage Arguments Value Examples
View source: R/genSincereProposals.R
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.
1 2 3 4 | genSincereProposals(
voterIdealsGenSincereProposals,
numberOfSincereProposalsGenSincereProposals = 1
)
|
voterIdealsGenSincereProposals |
The dataframe of voter ideals usually created with |
numberOfSincereProposalsGenSincereProposals |
Number of sincere proposals to generate. Default is 1. |
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.
1 2 3 4 5 | someVoters <- genVoters(numberOfDimensionsGenVoters = 2)
genSincereProposals(voterIdealsGenSincereProposals = someVoters, numberOfSincereProposalsGenSincereProposals = 2)
genSincereProposals(voterIdealsGenSincereProposals = someVoters)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.