Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/gradeFunctions.R
Grade Multiple Choice Exams with Correction for Guessing
1 2 3 4 5 |
responses |
A data.frame object (REQUIRED), as created with the
|
noItems |
An integer (OPTIONAL), not exceeding 40, specifying the
number of multiple choice exam test items (questions) on the answers sheet
to be considered. If a |
noOptions |
An integer (OPTIONAL), which specifies the number of options for each multiple choice exam test item (question). The default is 4 options (answers "A", "B", "C", and "D"). |
The gradeExam()
function calculates the exam grades achieved based on
the correct responses to the multiple choice exam test items (questions). The
exam grade is corrected for guessing.
The responses
data.frame object extended with a column giving the
calculated exam grade (Exam grade
) for each student.
Maikel Verouden
Other grade functions:
linkNames()
,
numberCorrect()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Load the answer key
key <- loadKey(keyFile = paste0(.libPaths()[1], "/wurmc/examples/keyFile.xlsx"))
## Load the student responses from a Microsoft Excel
responses <- loadResponses(respFile = paste0(.libPaths()[1], "/wurmc/examples/respFile.xlsx"))
## Determine the number of correct student responses
responses <- numberCorrect(responses, key)
## Link Student Names
responses <- linkNames(responses, regFile = paste0(.libPaths()[1], "/wurmc/examples/regFile.xlsx"))
## Grade Multiple Choice Exams
responses <- gradeExam(responses)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.