GithubHelp home page GithubHelp logo

jdc-data-analysis's Introduction

jdc-data-analysis

Data preprocessing, analysis scripts and tools for the Journee des Classes experiment. The project is organized in several R scripts, that go through the different steps of the data analysis process:

  • JDCLogPreprocess.R = Pre-processing of logs: from a raw log file to a cleaner R data frame of moments and manipulable positions
  • JDCSurveyPreprocess.R = Preprocessing of raw survey data, in csv form
  • JDCMapPreprocess.R = Preprocessing of map performance data, from the human video analysis, in csv form
  • JDCEyetrackPreprocess.R = Preprocessing of teacher eyetracker data, in txt/csv form
  • JDCExploratory.R = Exploratory analysis: First basic analyses of data, to know what we have

Pre-processing

These files normally have a single user function, that does most of the things provided the folder where the raw data is, e.g.:

preprocessJDCLogs(rootDir, doYAMLConversion=FALSE)

These functions will generate one or more .rda files with the clean/processed data for each student/group. These data can be easily loaded in R using:

var <- get(load('filename.rda'))

Note for the log preprocessing: This function will assume that you have a directory rootDir with subdirectories for each lamp log data, named lamp 1, lamp 2 etc. This rootDir will also contain a csv file with each group's beginning and ending times (see logs/ folder in this project). If the doYAMLConversion parameter is set to TRUE, it will try to convert the original pseudo-YAML log files into JSON, a similar format which is more easily read by R (if the parameter is set to FALSE, that means you already did that conversion, and you have .json log files in the lamp folders instead).

Another Note for log preprocessing: The pseudo-YAML files have to be syntactically correct (all braces and parenthesis must be closed, no "half objects" are allowed -- something that happens sometimes in the log file). This is something you will have to check manually

Note on log data: S4G2.rda denotes session 4, Group/Lamp 2. Each row has a numeric timestamp (milliseconds) and 64 more variables with the quadrant in which the element was placed (as character variables with values 0 -- not present, Q1, Q2, Q3, Q4).The quadrants are defined as in classical geometry

Q2 Q1
Q3 Q4

Exploratory analysis

These functions generate some basic descriptive graphics about the data, just run the function:

JDCExplorations(rootDir=".")

This function will take the pre-processed data .rda files (each kind in a different folder, e.g., quests, logs, maps...) and generate a number of graphic files.

jdc-data-analysis's People

Contributors

lprisan avatar dcaballerod avatar ascaoy avatar

Watchers

James Cloos avatar  avatar  avatar

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.