get_max_possible_total_score: Calculate the maximum score of a set of items

Description Usage Arguments Value Author(s) Examples

View source: R/misc.R

Description

Calculate the maximum score of a set of items

Usage

1

Arguments

ip

An Itempool-class object.

resp

(optional) A response vector or a response matrix. The contents are not important. The function only checks whether an element is missing or not. If an element is missing, then that item will not count towards the maximum possible score. If the maximum score of all items are needed, set resp = NULL.

Value

A vector of numbers showing the maximum possible scores.

Author(s)

Emre Gonulates

Examples

1
2
3
4
5
6
7
ip <- generate_ip(n = 10)
get_max_possible_total_score(ip)
# A mixture of dichotomous and polytomous items
ip <- generate_ip(model = c("3PL", "GRM", "3PL", "GRM", "GRM"),
                  n_categories = c(2, 5, 2, 4, 6))
# 1 + 4 + 1 + 3 + 5 = 14
get_max_possible_total_score(ip)

irt documentation built on Nov. 9, 2021, 9:07 a.m.