fitted {ltm}R Documentation

Fitted Values

Description

Computes the expected frequencies for vectors of response patterns.

Usage


## S3 method for class 'grm':
fitted(object, resp.patterns = NULL, ...)

## S3 method for class 'ltm':
fitted(object, resp.patterns = NULL, ...)

## S3 method for class 'rasch':
fitted(object, resp.patterns = NULL, ...)

## S3 method for class 'tpm':
fitted(object, resp.patterns = NULL, ...)

Arguments

object an object inheriting from either class grm, class ltm, class rasch, or class tpm.
resp.patterns a matrix or a data.frame of response patterns with columns denoting the items; if NULL the expected frequencies are computed for the observed response patterns.
... additional arguments; currently none is used.

Value

a numeric matrix including the response patterns of interest with their expected frequencies.

Author(s)

Dimitris Rizopoulos dimitris.rizopoulos@med.kuleuven.be

See Also

grm, ltm, rasch, tpm

Examples


m <- grm(Science[c(1,3,4,7)])
fitted(m, resp.patterns = matrix(1:4, nr = 4, nc = 4))

m <- ltm(Wirs ~ z1)
fitted(m)


[Package ltm version 0.6-0 Index]