Chapter 7: Education Data Science Pipeline with
Online Science Class Data
Bookclub
3/10/2021
Goals
Learning about key steps in data preparation, processing, wrangling using tidyverse (a set of packages)
Driving question & data
Question: What ‘explains’ student final grade in online science courses?
Variables (data type) | dataframe (source) |
| course_data (Gradebook in LMS) |
Three student motivation measures from 10 self-report questions (affect)
| pre_survey (from LMS, given before the start of the course) |
Number of minutes students spent on the course (log-trace/process data) | course_minutes (from LMS) |
Discussion board (text/string, learning process) | LMS |
Note: pre_survey, course_data, course_minutes are all imported from {dataedu} package
Outline of data processing & analysis
blue = function
{purple} = package
green = output
pivot_longer: make a df from wide format to long format
wide format (pre_survey, original format)
long format (pre_survey, transferred, after using pivot_longer function)
pre_survey %>%
pivot_longer(cols = q1:q10,
names_to = "question",
values_to = "response")
⇒ you specify the highlighted parts
left_join is most common; but there are others to merge 2 dfs