immer_unique_patterns: Extracts Unique Item Response Patterns

Description Usage Arguments Value See Also Examples

View source: R/immer_unique_patterns.R

Description

Extracts unique item response patterns.

Usage

1
immer_unique_patterns(dat, w=rep(1, nrow(dat)))

Arguments

dat

Data frame containing integer item responses

w

Optional vector of weights

Value

A list with entries

y

Data frame with unique item response patterns

w

Vector of frequency weights

y_string

Item response pattern coded as a string

See Also

See mirt::expand.table for back-converting unique item response patterns into a data frame with item responses.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#############################################################################
# EXAMPLE 1: Unique item response patterns data.read
#############################################################################

data( data.read, package="sirt")
dat <- data.read

# extract item response patterns
res <- immer::immer_unique_patterns( dat)

## Not run: 
# back-conversion with expand.table
dat2 <- mirt::expand.table( cbind( res$y,  res$w ) )
# check correctness
colMeans(dat)
colMeans(dat2)

## End(Not run)

alexanderrobitzsch/immer documentation built on Aug. 16, 2020, 10:11 p.m.