fitted {ltm} | R Documentation |
Computes the expected frequencies for vectors of response patterns.
## 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, ...)
object |
an object inheriting from either class grm , class ltm or class rasch . |
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. |
a numeric matrix including the response patterns of interest with their expected frequencies.
Dimitris Rizopoulos dimitris.rizopoulos@med.kuleuven.be
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)