Learn R Programming

fsia (version 1.0)

person.stat: Person Statistics

Description

This function computes some statistics for each person.

Usage

person.stat(obj, columns)

Arguments

obj
An object of class fsdata containing the data imported by function read.formscanner.
columns
A vector containing which columns to use. Columns can be specified by name or number.

Value

A data frame with the following variables.
id
person label.
score
number of corrected responses for each person.
count
number of total items for each person.
perc
percentage of corrected responses.

See Also

person.stat

Examples

Run this code
data(exam1)
pst <- person.stat(obj = exam1, col = 2:31)
head(pst)
summary(pst$score)
hist(pst$score, main = "Histogram of Scores", xlab = "")

Run the code above in your browser using DataLab