IRT.data.tam: Extracting Item Response Dataset

Description Usage Arguments Value Examples

Description

Extracts the used data set for models fitted in TAM. See CDM::IRT.data for more details.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'tam.mml'
IRT.data(object, ...)

## S3 method for class 'tam.mml.3pl'
IRT.data(object, ...)

## S3 method for class 'tamaan'
IRT.data(object, ...)

Arguments

object

Object of class tam, tam.mml, tam.mml.3pl or tamaan.

...

Further arguments to be passed

Value

A dataset with item responses

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
#############################################################################
# EXAMPLE 1: Dichotomous data data.sim.rasch
#############################################################################

data(data.sim.rasch)
dat <- data.sim.rasch

# estimate model
mod1 <- TAM::tam.mml(dat)
# extract dataset (and weights and group if available)
dmod1 <- IRT.data(mod1)
str(dmod1)

## End(Not run)

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)
....................................................
Processing Data      2018-08-06 07:21:09 
    * Response Data: 2000 Persons and  40 Items 
    * Numerical integration with 21 nodes
    * Created Design Matrices   ( 2018-08-06 07:21:09 )
    * Calculated Sufficient Statistics   ( 2018-08-06 07:21:09 )
....................................................
Iteration 1     2018-08-06 07:21:09
E Step
M Step Intercepts   |----
  Deviance  = 84803.9272
  Maximum item intercept parameter change: 0.33272
  Maximum item slope parameter change: 0
  Maximum regression parameter change: 0
  Maximum variance parameter change: 0.125876
....................................................
Iteration 2     2018-08-06 07:21:09
E Step
M Step Intercepts   |---
  Deviance  = 84201.8406 | Absolute change: 602.0866 | Relative change: 0.00715052
  Maximum item intercept parameter change: 0.044568
  Maximum item slope parameter change: 0
  Maximum regression parameter change: 0
  Maximum variance parameter change: 0.167316
....................................................
Iteration 3     2018-08-06 07:21:10
E Step
M Step Intercepts   |--
  Deviance  = 84162.1461 | Absolute change: 39.6945 | Relative change: 0.00047164
  Maximum item intercept parameter change: 0.017468
  Maximum item slope parameter change: 0
  Maximum regression parameter change: 0
  Maximum variance parameter change: 0.069771
....................................................
Iteration 4     2018-08-06 07:21:10
E Step
M Step Intercepts   |--
  Deviance  = 84156.6153 | Absolute change: 5.5308 | Relative change: 6.572e-05
  Maximum item intercept parameter change: 0.006594
  Maximum item slope parameter change: 0
  Maximum regression parameter change: 0
  Maximum variance parameter change: 0.026369
....................................................
Iteration 5     2018-08-06 07:21:10
E Step
M Step Intercepts   |--
  Deviance  = 84155.879 | Absolute change: 0.7363 | Relative change: 8.75e-06
  Maximum item intercept parameter change: 0.00247
  Maximum item slope parameter change: 0
  Maximum regression parameter change: 0
  Maximum variance parameter change: 0.00966
....................................................
Iteration 6     2018-08-06 07:21:10
E Step
M Step Intercepts   |--
  Deviance  = 84155.7823 | Absolute change: 0.0966 | Relative change: 1.15e-06
  Maximum item intercept parameter change: 0.000952
  Maximum item slope parameter change: 0
  Maximum regression parameter change: 0
  Maximum variance parameter change: 0.0035
....................................................
Iteration 7     2018-08-06 07:21:10
E Step
M Step Intercepts   |--
  Deviance  = 84155.7696 | Absolute change: 0.0128 | Relative change: 1.5e-07
  Maximum item intercept parameter change: 0.000396
  Maximum item slope parameter change: 0
  Maximum regression parameter change: 0
  Maximum variance parameter change: 0.001263
....................................................
Iteration 8     2018-08-06 07:21:10
E Step
M Step Intercepts   |--
  Deviance  = 84155.7678 | Absolute change: 0.0018 | Relative change: 2e-08
  Maximum item intercept parameter change: 0.00019
  Maximum item slope parameter change: 0
  Maximum regression parameter change: 0
  Maximum variance parameter change: 0.000455
....................................................
Iteration 9     2018-08-06 07:21:10
E Step
M Step Intercepts   |--
  Deviance  = 84155.7674 | Absolute change: 4e-04 | Relative change: 0
  Maximum item intercept parameter change: 0.000111
  Maximum item slope parameter change: 0
  Maximum regression parameter change: 0
  Maximum variance parameter change: 0.000164
....................................................
Iteration 10     2018-08-06 07:21:10
E Step
M Step Intercepts   |-
  Deviance  = 84155.7672 | Absolute change: 2e-04 | Relative change: 0
  Maximum item intercept parameter change: 7.9e-05
  Maximum item slope parameter change: 0
  Maximum regression parameter change: 0
  Maximum variance parameter change: 5.9e-05
....................................................
Item Parameters
   xsi.index xsi.label     est
1          1        I1 -1.9590
2          2        I2 -1.8570
3          3        I3 -1.7444
4          4        I4 -1.6407
5          5        I5 -1.5448
6          6        I6 -1.5344
7          7        I7 -1.3466
8          8        I8 -1.3499
9          9        I9 -1.2603
10        10       I10 -1.0469
11        11       I11 -1.0233
12        12       I12 -0.8563
13        13       I13 -0.8002
14        14       I14 -0.7447
15        15       I15 -0.5202
16        16       I16 -0.3962
17        17       I17 -0.3727
18        18       I18 -0.2298
19        19       I19 -0.1062
20        20       I20 -0.0522
21        21       I21  0.0376
22        22       I22  0.1044
23        23       I23  0.3343
24        24       I24  0.4232
25        25       I25  0.5209
26        26       I26  0.6415
27        27       I27  0.6443
28        28       I28  0.8484
29        29       I29  0.9395
30        30       I30  1.0179
31        31       I31  1.1160
32        32       I32  1.1372
33        33       I33  1.3117
34        34       I34  1.3149
35        35       I35  1.5559
36        36       I36  1.6198
37        37       I37  1.7039
38        38       I38  1.7490
39        39       I39  1.9352
40        40       I40  2.0502
...................................
Regression Coefficients
     V1
[1,]  0

Variance:
      [,1]
[1,] 1.404


EAP Reliability:
[1] 0.899

-----------------------------
Start:  2018-08-06 07:21:09
End:  2018-08-06 07:21:10 
Time difference of 0.5077784 secs

 num [1:2000, 1:40] 1 0 1 1 1 1 1 1 1 1 ...
 - attr(*, "dimnames")=List of 2
  ..$ : NULL
  ..$ : chr [1:40] "I1" "I2" "I3" "I4" ...
 - attr(*, "weights")= num [1:2000] 1 1 1 1 1 1 1 1 1 1 ...

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