skipped.analysis: Analyze whether the student skipped the questions or not

Usage Arguments Value Examples

Usage

1
2
skipped.analysis(records, students = NULL, lessons = DSR.lessons,
  course.source = course.sources)

Arguments

records

The data.frame of the raw records. This should be the output of the function get.records.

students

The user_id to be analyzed. If it is NULL, then all students in the records will be analyzed.

lessons

The character vector of the courses to be analyzed.

course.source

named list. The name is the course name. The value is the root of the swirl course directory.

Value

data.frame with following columns:

Note that the students might do the question multiple times, so there might be multiple rows for the specific course, question.no and user_id. Each row represents each trials of the student at the specific course and question.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
login("wush")
records <- get.records()
skipped.result <- skipped.analysis(records)
library(dplyr)
group_by(skipped.result, course, question.no, user_id) %>%
 summarise(is.skipped = all(skipped)) %>% # if the student does not skip once, then I recognize that he/she did the question.
 group_by(course, question.no) %>%
 summarise(skip.ratio = mean(is.skipped)) %>%
 arrange(desc(skip.ratio))

## End(Not run)

wush978/DSRTeacher documentation built on May 29, 2019, 2:29 p.m.