fitted | R Documentation |
Computes the expected frequencies for vectors of response patterns.
## S3 method for class 'gpcm' fitted(object, resp.patterns = NULL, type = c("expected", "marginal-probabilities", "conditional-probabilities"), ...) ## S3 method for class 'grm' fitted(object, resp.patterns = NULL, type = c("expected", "marginal-probabilities", "conditional-probabilities"), ...) ## S3 method for class 'ltm' fitted(object, resp.patterns = NULL, type = c("expected", "marginal-probabilities", "conditional-probabilities"), ...) ## S3 method for class 'rasch' fitted(object, resp.patterns = NULL, type = c("expected", "marginal-probabilities", "conditional-probabilities"), ...) ## S3 method for class 'tpm' fitted(object, resp.patterns = NULL, type = c("expected", "marginal-probabilities", "conditional-probabilities"), ...)
object |
an object inheriting either from class |
resp.patterns |
a |
type |
if |
... |
additional arguments; currently none is used. |
a numeric matrix
or a list
containing either the response patterns of interest with their expected
frequencies or marginal probabilities, if type == "expected" || "marginal-probabilities"
or the conditional
probabilities for each response pattern and item, if type == "conditional-probabilities"
.
Dimitris Rizopoulos d.rizopoulos@erasmusmc.nl
residuals.gpcm
,
residuals.grm
,
residuals.ltm
,
residuals.rasch
,
residuals.tpm
fit <- grm(Science[c(1,3,4,7)]) fitted(fit, resp.patterns = matrix(1:4, nr = 4, nc = 4)) fit <- rasch(LSAT) fitted(fit, type = "conditional-probabilities")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.