rm(list = ls(all = TRUE)) # clear the workspace
# Figure 8A approximation
eightAapprox <- aKMajorityRuleSimulation(folderName="Figure8Approx",
numberOfIterations=100,
groupSize=c(50,30,20),
utilityDistribution=c("normal","normal","normal"),
utilityDistributionParameters=c(-.5,.2,0,.2,.1,.2),
errorDistribution=c("normal","normal","normal"),
errorDistributionParameters=c(0,.3,0,.3,0,.3),
groupPostFailingProposalMeanUiIncrease=c("-.1/r",".1/r",".1/r"),
maximumNumberOfProposalsInASeries=1000,
perProposalDecisionCost=.01,
outputTo=getwd(),
silentSeries=TRUE,
silentIterations=FALSE,
writeCSV=FALSE,
writeRObjects=FALSE,
plotExternalCostTotalCosts=FALSE,
plotExpectedUtilityDecCostTotalUtil=TRUE,
plotOnlyExternalCost=FALSE,
plotOnlyExpectedUtility=FALSE,
plotNumberOfRounds=FALSE,
plotPareto=FALSE,
printOutputToScreen=TRUE)
rm(eightAapprox)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.