Great game of Turkey: Difference between revisions

From Opasnet
Jump to navigation Jump to search
(new code that seems to work)
Line 29: Line 29:


ques <- question()
ques <- question()
oprint(ques)


dat <- data.frame(
dat <- data.frame(
Line 93: Line 92:
== Answer ==
== Answer ==


:''See the top of the page for the main questionnaire of the game.
:''See the top of the page for the main questionnaire of the game. Here we present results from the game.
 
<rcode embed=1 graphics=1>
#This is code Op_en7421/ on page [[Great game of Turkey]]
 
library(OpasnetUtils)
library(ggplot2)
 
objects.latest("Op_en7421", code_name = "dayquestion")
objects.latest("Op_en6007", code_name = "answer") # oggplot etc
 
happindex <- EvalOutput(happindex)
oggplot(happindex, x = "Date", fill = "Group") + facet_wrap(~ User)
 
happmean <- oapply(happindex, cols = c("Date", "Question", "Option"), FUN = mean)
happequity <- oapply(happmean, cols = "Group", FUN = sd)
 
oggplot(mergeusers(happmean), x = "User", fill = "Group") + labs(title = "Mean happiness over time")
oggplot(mergeusers(happequity), x = "User") + labs(title = "Deviation from the equity")
 
progindex <- EvalOutput(progindex)
oggplot(progindex, x = "Date", fill = "Group") + facet_wrap(~ User)
 
progmean <- oapply(progindex, cols = c("Date", "Question", "Option"), FUN = mean)
progequity <- oapply(progmean, cols = "Group", FUN = sd)
 
oggplot(mergeusers(progmean), x = "User", fill = "Group") + labs(title = "Mean progress over time")
oggplot(mergeusers(progequity), x = "User") + labs(title = "Deviation from the policy balance")
 
</rcode>


== Rationale ==
== Rationale ==
Line 155: Line 183:


oprint(dat)
oprint(dat)
cat("Your progress score was successfully saved.\n")
cat("Your happiness score was successfully saved.\n")


</rcode>
</rcode>
Line 165: Line 193:
3;Option 3;
3;Option 3;
4;Option 4|
4;Option 4|
name:progress|type:selection|options:
name:progress|description:Select an issue|type:selection|options:
'Civil Rights';Civil Rights;
'Civil Rights';Civil Rights;
'Women´s Rights';Women´s Rights;
'Women´s Rights';Women´s Rights;
Line 171: Line 199:
'National Values';National Values;
'National Values';National Values;
'Democracy';Democracy|
'Democracy';Democracy|
name:pscore|type:selection|options:
name:pscore|How much progress would this option bring to this issue?|type:selection|options:
NA;- choose score -;2;+2;1;+1;0;0;-1;-1;-2;-2|default:NA
NA;- choose score -;2;+2;1;+1;0;0;-1;-1;-2;-2|default:NA
">
">
Line 314: Line 342:
}
}


objects.store(question)
mergeusers <- function(happ) {
  if(length(happ$User) != length(happ$User[happ$User == wiki_username])) {
    test1 <- happ[happ$User == wiki_username , ]
    test1$User <- "You"
    test2 <- happ[happ$User != wiki_username , ]
    test2$User <- "Others"
    happ <- combine(test1, test2)
  }
  return(happ)
}
 
happiness <- Ovariable("happiness", ddata = "Op_en7421.happiness", getddata = FALSE)
progress <- Ovariable("progress", ddata = "Op_en7421.progress", getddata = FALSE)
questions <- Ovariable("questions", ddata = "Op_en7421.questions", getddata = FALSE)
 
choices <- Ovariable("choices",
dependencies = data.frame(Name = "happiness"),
formula = function(...) {
  dat <- opbase.data("Op_en7421.choices")
  colnames(dat)[colnames(dat) == "Result"] <- "Option"
  dat$Obs <- NULL
  dat$Result <- 1
  return(dat)
}
)
 
questions <- Ovariable("questions",
dependencies = data.frame(Name = "happiness"),
formula = function(...) {
  dat <- opbase.data("Op_en7421.questions")
  colnames(dat)[colnames(dat) == "Result"] <- "Option"
  dat$Obs <- NULL
  dat$Result <- 1
  return(dat)
}
)
 
happindex <- Ovariable("happindex",
  dependencies = data.frame(Name = c(
    "happiness",
    "choices",
    "questions"
    )),
  formula = function(...) {
 
    happiness <- oapply(happiness, cols = "User", FUN = mean)
    happindex <- choices * happiness * questions
    return(happindex)
  }
)
 
progindex <- Ovariable("progindex",
dependencies = data.frame(Name = c(
  "progress",
  "choices",
  "questions"
)),
formula = function(...) {
 
  progress <- oapply(progress, cols = "User", FUN = mean)
  progindex <- choices * progress * questions
  return(progindex)
}
)
 
objects.store(list = ls())


</rcode>
</rcode>
Line 322: Line 415:
! Questions || Choices || Happiness || Progress || Question vote || Option vote || User
! Questions || Choices || Happiness || Progress || Question vote || Option vote || User
|----
|----
|
| style="text-align:top;"|
* Date
* Question
* Question
* Option
* Option
|
|
* Question
* User
* User
* Option
* Option
|
|
* Question
* Option
* Option
* Group
* Group
Line 334: Line 430:
* Hscore
* Hscore
|
|
* Question
* Option
* Option
* Progress
* Progress
Line 339: Line 436:
* Pscore
* Pscore
|  
|  
* Date
* User
* Question
* Question
|
* Date
* User
* User
* Qscore
|
* Option
* Option
* User
* Oscore
|  
|  
* User
* User

Revision as of 19:22, 17 January 2016

+ Show code

Check above the question of the day and decide which option you would choose.:

+ Show code

Into which group do you identify most? (You only need to choose once):

+ Show code

Question

What is a good game to crowdsource citizen priorities about daily political decisions in such a way that

  • it can be done using a mobile app,
  • it characterises happiness of citizen groups of the decisions,
  • it characterises progress of important societal values,
  • it enables crowdsourcing the actual questions and options asked?

Answer

See the top of the page for the main questionnaire of the game. Here we present results from the game.

+ Show code

Rationale

Questions(-)
ObsDateQuestionOption
12016-01-16Should the scarf ban in the universities be abandoned?Yes
22016-01-16Should the scarf ban in the universities be abandoned?Partly
32016-01-16Should the scarf ban in the universities be abandoned?No
42016-01-17Should the military budget be increased?Yes
52016-01-17Should the military budget be increased?No, keep the same
62016-01-17Should the military budget be increased?No, reduce
72016-01-17Should the education budget be increased?Yes
82016-01-17Should the education budget be increased?No, keep the same
92016-01-17Should the education budget be increased?No, reduce

Select an option:

Select a group:

How much happiness would this option bring to this group?:

+ Show code

Select an option:

Select an issue:

pscore:

+ Show code

+ Show code

Give the number of the question you want for today.:

+ Show code

Give the number of the option you want for today (up to 4 options used).:

+ Show code

+ Show code

Structures of the tables.
Questions Choices Happiness Progress Question vote Option vote User
  • Date
  • Question
  • Option
  • Question
  • User
  • Option
  • Question
  • Option
  • Group
  • User
  • Hscore
  • Question
  • Option
  • Progress
  • User
  • Pscore
  • Date
  • User
  • Question
  • Date
  • User
  • Option
  • User
  • Date
  • Group
Important categories
Groups for Turkey Progress categories
  • Nationalists
  • Conservatives
  • Minorities
  • Liberals
  • Kemalists
  • Civil Rights
  • Women's Rights
  • Religion
  • National Values
  • Democracy

See also


Keywords

References


Related files