| klausuR.answ,-class {klausuR} | R Documentation |
Class klausuR.answ
Description
This class is used for objects needed by klausur.
They contain all relevant data to calculate test results.
Slots
corrContains three elements:
corrThe correct answers to each item.corr.keyAn optional data.frame or matrix for test with multiple test forms, indicating the positions of all items (columns) in all forms (rows). Must have a column calledForm(like inid), and the item columns must follow the usual name schemeItem###.NULLif not needed.wrongFor pick-n scoring, this is the inverse ofcorr, i.e., all wrong item alternatives.
idContains the columns
No,Name,FirstName,MatrNo,PseudonymandForm.itemsContains a copy of
id$MatrNoand all answers to the test items (one item per column).scoreContains three elements:
marksThe assigned marks for achieved points (NULLif none)wghtWeights for each item (NULLif none)maxpOptional, to force a certain maximum points value (NULLif none)
testCurrently an empty placeholder. Planned to hold the actual test items in future releases.
miscAny additional data you'd like to be stored along with
idanditems, e.g. table data from/for other software products. Won't be used for anything.
Note
The slots , id, items and misc,
must have the same number of rows and contain copies of the colum MatrNo
for identification.