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

corr

Contains three elements:

  • corr The correct answers to each item.

  • corr.key An 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 called Form (like in id), and the item columns must follow the usual name scheme Item###. NULL if not needed.

  • wrong For pick-n scoring, this is the inverse of corr, i.e., all wrong item alternatives.

id

Contains the columns No, Name, FirstName, MatrNo, Pseudonym and Form.

items

Contains a copy of id$MatrNo and all answers to the test items (one item per column).

score

Contains three elements:

  • marks The assigned marks for achieved points (NULL if none)

  • wght Weights for each item (NULL if none)

  • maxp Optional, to force a certain maximum points value (NULL if none)

test

Currently an empty placeholder. Planned to hold the actual test items in future releases.

misc

Any additional data you'd like to be stored along with id and items, 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.


[Package klausuR version 0.12-14 Index]