tam_NA_pattern: Missing Data Patterns

Description Usage Arguments Value Examples

View source: R/tam_NA_pattern.R

Description

Determines patterns of missing values or pattern of dichotomous item responses.

Usage

1
2
3

Arguments

x

Matrix or data frame

Value

List containing identifiers and indices

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#############################################################################
# EXAMPLE 1: Missing data patterns
#############################################################################

data(data.sim.rasch.missing, package="TAM")
dat <- data.sim.rasch.missing

res <- TAM::tam_NA_pattern(dat)
str(res)

#############################################################################
# EXAMPLE 2: Item response patterns
#############################################################################

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

res <- TAM::tam_01_pattern(dat)
str(res)

Example output

Loading required package: CDM
Loading required package: mvtnorm
**********************************
** CDM 5.8-9 (2017-08-07 17:48:04)       
** Cognitive Diagnostic Models
**********************************

* TAM 2.6-2 (2017-08-10 11:07:46)
List of 2
 $ miss.pattern: num [1:2000] 1.1e+12 1.1e+12 1.0 1.1e+12 1.0 ...
 $ mp.index    : int [1:2000] 2 2 1 2 1 2 1 2 2 2 ...
List of 2
 $ miss.pattern: Named num [1:328] 2048 1492 4060 4096 1482 ...
  ..- attr(*, "names")= chr [1:328] "2" "22" "23" "41" ...
 $ mp.index    : int [1:328] 66 36 171 185 34 166 2 181 185 100 ...

TAM documentation built on June 25, 2021, 5:13 p.m.