GithubHelp home page GithubHelp logo

virtualcommons / port-of-mars-analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 139 KB

R analysis pipeline for Port of Mars "Mars Madness" tournaments

Home Page: https://portofmars.asu.edu

License: GNU General Public License v3.0

R 100.00%
data-analysis behavioral-experiments collective-action computationa-social-science

port-of-mars-analysis's People

Contributors

alee avatar chrstngyn avatar cpritcha avatar kaclaborn avatar sgfost avatar

Watchers

 avatar  avatar

port-of-mars-analysis's Issues

add time blocks to data output

available time blocks for the player should also be listed in players.csv alongside how much they invested (due to changes from events / personal gain / voted hero in hero or pariah)

survey load assertions

For cultural, pre and post surveys

  • rows missing a participant_id or invite_id should be outside the tournament date range

Our current dataset satisfies this property but maybe not a tournament in the future

create ways for ranking severity of events

we can draw relationships between language (e.g. frequency using words like pariah, hero, etc) and severity of events

need to define what severity index encompasses for an categorizing an event

Create data analysis / collection diagram

A data collection diagram like the following can be useful for documenting how we get from experiment data -> research findings:

Moosavi, Sobhan, Mohammad Hossein Samavatian, Srinivasan Parthasarathy, Radu Teodorescu, and Rajiv Ramnath. “Accident Risk Prediction based on Heterogeneous Sparse Data: New Dataset and Insights.” In proceedings of the 27th ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, ACM, 2019.

image

survey integration union_all call is failing

There is an issue with the analysis pipeline integrating round 1 pre surveys with round 2+ pre surveys. Not sure if this is a data issue where the round 1 pre survey has changed and the round 2+ pre surveys did not or vice versa.

@MarcoAJanssen

<error/rlang_error>
Error in `dplyr::union_all()` at R/survey.R:301:2:
! `x` and `y` are not compatible.
✖ Different number of columns: 111 vs 122.
---
Backtrace:
    ▆
 1. └─global tournament_load(tournament_dir, max_game_rounds)
 2.   └─global survey_tournament_load(...) at R/tournament.R:7:2
 3.     ├─dplyr::union_all(r1, r2plus) at R/survey.R:301:2
 4.     └─dplyr:::union_all.data.frame(r1, r2plus)

2022-02 data fails assertion on game roles == end player points

Error: nrow(game_role) not equal to nrow(end_player_points)
In addition: Warning message:
In max(id) : no non-missing arguments to max; returning -Inf
Called from: assertthat::assert_that(nrow(game_role) == nrow(end_player_points))
Browse[1]> tournament_codebook <- tournament_codebook_create(max_game_rounds)

add special case summarizers for events with interaction

  1. Personal Gain (VotedForPersonalGain)
  2. Hero or Pariah (VoteHeroOrPariah)
  3. Compulsive Philanthropy (VotedForPhilanthropist)
  4. Breakdown of Trust: keep up to 2 influence resource units (BreakdownOfTrust
  5. Bonding through Adversity
  6. Efforts Wasted
  7. any others?

Identify a way to programmatically discover these events and emit their data payloads in MarsEventSummarizer, possibly GameEventWithData will work?

issues with events data

The data file that includes information on events that happened in the round has a number of issues:

  • Sandstorm is listed for 2 rounds while a sandstorm should be happening for 3 rounds. Is this an accounting error?
  • In game 64 there are no events for round 8, which is not possible
  • In game 69 there are no events for rounds 2 and 3
  • It would be great to know the voting outcomes, like whether hero or pariah is elected and who the hero or pariah is.

properly document scripts

add documentation and structure to R scripts

use RStudio ==== to demarcate sections in the script and document its organization + control flow better

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.