| 1 |
### mcexam_example_dataset.r |
| 2 |
### This code contains some test data for the example of mcexam. First run |
| 3 |
### mcexam_example.tex through LaTeX, then process this file with R. Next, |
| 4 |
### you can make an analysis version of the exam in LaTeX. Make sure the |
| 5 |
### working directory is the folder where mcexam_example.tex resorts. |
| 6 |
### |
| 7 |
### Copyright (c) 2017 Jorre Vannieuwenhuyze. |
| 8 |
### |
| 9 |
### Permission is granted to copy, distribute and/or modify this |
| 10 |
### software under the terms of the LaTeX Project Public License |
| 11 |
### (LPPL), version 1.3c or any later version. |
| 12 |
### |
| 13 |
### This software is provided 'as is', without warranty of any kind, |
| 14 |
### either expressed or implied, including, but not limited to, the |
| 15 |
### implied warranties of merchantability and fitness for a |
| 16 |
### particular purpose. |
| 17 |
|
| 18 |
rm(list = ls()) |
| 19 |
|
| 20 |
ID <- c(1,2,3,4,5,6,7,8,9,10) |
| 21 |
versions <- c(1,1,1,2,2,2,2,3,3,3) |
| 22 |
answers <- rbind(c(1,2,1,4,2, 3,4,3,1,1, 2,2,2,5,2, 1,3) #17 |
| 23 |
,c(1,1,2,4,3, 2,2,3,1,2, 2,3,2,5,2, 2,3) #9 |
| 24 |
,c(1,2,1,3,2, 3,4,2,1,1, 2,2,3,5,1, 1,3) #8 |
| 25 |
,c(3,2,5,4,2, 4,1,3,4,1, 2,3,1,1,2, 2,3) #11 |
| 26 |
,c(2,2,5,3,2, 3,1,2,4,2, 2,3,1,1,1, 2,3) #0 |
| 27 |
,c(3,2,5,4,2, 4,1,3,3,1, 2,2,1,1,2, 1,4) #7 |
| 28 |
,c(3,2,5,4,2, 3,1,3,4,2, 2,3,2,1,1, 2,1) #2 |
| 29 |
,c(2,1,4,2,1, 1,3,5,4,1, 1,3,1,4,3, 2,4) #6 |
| 30 |
,c(2,1,3,3,1, 1,3,5,4,1, 1,2,1,4,3, 2,4) #11 |
| 31 |
,c(1,1,3,3,2, 1,2,5,4,3, 2,3,4,3,3, 1,3) #4 |
| 32 |
) |
| 33 |
|
| 34 |
source("mcexam_example.r") |
| 35 |
data <- mcprocessanswers(ID,versions,answers) |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|