Learn R Programming

mirt (version 0.1-13)

fscores: Compute factor scores

Description

Computes MAP or EAP factor scores for mirt and bfactor models. Note that only the general factor scores are computed for bifactor models.

Usage

fscores(object, ...)

## S3 method for class 'mirt': fscores(object, full.scores = FALSE, method = "EAP", ...)

## S3 method for class 'bfactor': fscores(object, full.scores = FALSE, method = "EAP", ...)

Arguments

object
a model of class mirt or bfactor
full.scores
if FALSE (default) then a summary table with factor scores for each unique pattern is displayed. Otherwise the original data matrix is returned with the computed factor scores
method
type of factor score estimation method. Can be expected a-posteriori ("EAP") or Bayes modal ("MAP")
...
additional arguments to be passed

Value

  • returns either a summary table with the response patterns and expected factor scores, or a complete data matrix with factor scores appended to the last column.

Examples

Run this code
tabscores <- fscores(mod)
fullscores <- fscores(mod, full.scores = TRUE)

Run the code above in your browser using DataLab