Great game of Turkey: Difference between revisions
Jump to navigation
Jump to search
(new code that seems to work) |
|||
Line 29: | Line 29: | ||
ques <- question() | ques <- question() | ||
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 | 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( | 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 | ||
* Option | * Option | ||
| | | | ||
* User | * User |
Revision as of 19:22, 17 January 2016
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.
Rationale
Obs | Date | Question | Option |
---|---|---|---|
1 | 2016-01-16 | Should the scarf ban in the universities be abandoned? | Yes |
2 | 2016-01-16 | Should the scarf ban in the universities be abandoned? | Partly |
3 | 2016-01-16 | Should the scarf ban in the universities be abandoned? | No |
4 | 2016-01-17 | Should the military budget be increased? | Yes |
5 | 2016-01-17 | Should the military budget be increased? | No, keep the same |
6 | 2016-01-17 | Should the military budget be increased? | No, reduce |
7 | 2016-01-17 | Should the education budget be increased? | Yes |
8 | 2016-01-17 | Should the education budget be increased? | No, keep the same |
9 | 2016-01-17 | Should the education budget be increased? | No, reduce |
Questions | Choices | Happiness | Progress | Question vote | Option vote | User |
---|---|---|---|---|---|---|
|
|
|
|
|
|
|
Groups for Turkey | Progress categories |
---|---|
|
|
See also
Moderator:Jouni (see all) |
|
Upload data
|
Keywords
References