fitQmat: Fit Q Matrix

Description Usage Arguments Examples

Description

Fit Q Matrix

Usage

1
2
3
fitQmat(scores, scores.test = scores, concepts.no = 2, delta = 0.1,
  qmat = NULL, niter = 50, init.method = c("NMF", "random"),
  verbose = FALSE)

Arguments

scores

table containing the students scores

scores.test

validation set.

concepts.no

number of concepts to fit

delta

step size for matrix exploration.

qmat

predefined qmatrix. If NULL (default) it will be initialized with one of the predefined methods.

niter

maximum number of iteration.

init.method

if qmat is null it will be created using one of the two methods - 'NMF' is based on Nonnegative Matrix Factorization or 'random' which is a random matrix.

verbose

if true, some additional information will be printed.

Examples

1
2
3
4
5
6
7
8
9
library(ltm)
data("WIRS")

fitQmat(WIRS, verbose = TRUE)

# Predefined matrix initialized with 0
fitQmat(WIRS, concepts.no = 2, qmat = matrix(0, ncol(WIRS), nrow = 2),verbose = TRUE)
# Predefined matrix initialized with 1
fitQmat(WIRS, concepts.no = 2, qmat = matrix(1, ncol(WIRS), nrow = 2),verbose = TRUE)

zzawadz/cdmQMatrix documentation built on May 8, 2019, 6:57 p.m.