IRT.factor.scores.tam: Extracting Factor Scores in 'TAM'

Description Usage Arguments Value Examples

View source: R/IRT.factor.scores.tam.R

Description

Extracts factor scores for models fitted in TAM. See CDM::IRT.factor.scores for more details.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'tam'
IRT.factor.scores(object, type="EAP", ...)

## S3 method for class 'tam.mml'
IRT.factor.scores(object, type="EAP", ...)

## S3 method for class 'tam.mml.3pl'
IRT.factor.scores(object, type="EAP", ...)

## S3 method for class 'tamaan'
IRT.factor.scores(object, type="EAP", ...)

Arguments

object

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

type

Type of factor score to be used. type="EAP" can be used for all classes in TAM while type="WLE" and type="MLE" can only be used for objects of class tam.mml. Further arguments to the used function tam.wle can be specified with ....

...

Further arguments to be passed

Value

See CDM::IRT.factor.scores.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
#############################################################################
# EXAMPLE 1: data.sim.rasch - Different factor scores in Rasch model
#############################################################################

data(data.sim.rasch)
# 1PL estimation
mod1 <- TAM::tam.mml(resp=data.sim.rasch)
# EAP
pmod1 <- IRT.factor.scores( mod1 )
# WLE
pmod1 <- IRT.factor.scores( mod1, type="WLE" )
# MLE
pmod1 <- IRT.factor.scores( mod1, type="MLE" )

## End(Not run)

Example output

Loading required package: CDM
Loading required package: mvtnorm
**********************************
** CDM 7.0-12 (2018-11-06 16:23:12)      
** Cognitive Diagnostic Models  **
**********************************

* TAM 2.13-15 (2018-09-30 14:35:48)
....................................................
Processing Data      2019-01-03 12:46:55 
    * Response Data: 2000 Persons and  40 Items 
    * Numerical integration with 21 nodes
    * Created Design Matrices   ( 2019-01-03 12:46:55 )
    * Calculated Sufficient Statistics   ( 2019-01-03 12:46:55 )
....................................................
Iteration 1     2019-01-03 12:46:55
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     2019-01-03 12:46:55
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     2019-01-03 12:46:55
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     2019-01-03 12:46:55
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     2019-01-03 12:46:55
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     2019-01-03 12:46:55
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     2019-01-03 12:46:55
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     2019-01-03 12:46:55
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     2019-01-03 12:46:55
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     2019-01-03 12:46:55
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
     [,1]
[1,]    0

Variance:
      [,1]
[1,] 1.404


EAP Reliability:
[1] 0.899

-----------------------------
Start:  2019-01-03 12:46:55
End:  2019-01-03 12:46:55 
Time difference of 0.3105793 secs

***** Estimate WLE *****
Iteration in WLE/MLE estimation  1   | Maximal change  0.8281 
Iteration in WLE/MLE estimation  2   | Maximal change  0.4335 
Iteration in WLE/MLE estimation  3   | Maximal change  0.0883 
Iteration in WLE/MLE estimation  4   | Maximal change  7e-04 
Iteration in WLE/MLE estimation  5   | Maximal change  0 
----
 WLE Reliability= 0.894 
***** Estimate MLE *****
Iteration in WLE/MLE estimation  1   | Maximal change  0.9673 
Iteration in WLE/MLE estimation  2   | Maximal change  0.6956 
Iteration in WLE/MLE estimation  3   | Maximal change  0.3496 
Iteration in WLE/MLE estimation  4   | Maximal change  0.0734 
Iteration in WLE/MLE estimation  5   | Maximal change  0.0027 
Iteration in WLE/MLE estimation  6   | Maximal change  0 
----
 MLE Reliability= 0.897 

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