probgpcm: calculates item response probabilities according to GPCM

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/probgpcm.R

Description

Calculates a matrix of item response probabilities over a grid of theta values for an item

Usage

1
  probgpcm(theta, a, cb)

Arguments

theta

a vector of theta values (e.g., quadrature points)

a

a slope parameter value

cb

a vector of category threshold values

Details

The Generalized Partial Credit Model (Muraki, 1992) is assumed.

Value

Returns a matrix of item response probabilities. The first dimension corresponds to the length of theta.

Author(s)

Seung W. Choi <choi.phd@gmail.com>

References

Muraki, E. (1992). A generalized partial credit model: Application of an EM algorithm. Applied Psychological Measurement, 16, 159-176.

See Also

calcprob, probgrm

Examples

1
probgrm(seq(-4,4,.1), 1.5, c(-1.2,0.5,1.5))

Example output

Loading required package: mirt
Loading required package: stats4
Loading required package: lattice
Loading required package: rms
Loading required package: Hmisc
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package: 'Hmisc'

The following objects are masked from 'package:base':

    format.pval, units

Loading required package: SparseM

Attaching package: 'SparseM'

The following object is masked from 'package:base':

    backsolve

              [,1]        [,2]         [,3]         [,4]
 [1,] 0.9852259683 0.013604521 0.0009083199 0.0002611903
 [2,] 0.9828759667 0.015765513 0.0010550729 0.0003034470
 [3,] 0.9801596943 0.018262278 0.0012254902 0.0003525378
 [4,] 0.9770226301 0.021144431 0.0014233718 0.0004095672
 [5,] 0.9734030064 0.024468054 0.0016531221 0.0004758176
 [6,] 0.9692311406 0.028296236 0.0019198445 0.0005527786
 [7,] 0.9644288107 0.032699560 0.0022294495 0.0006421797
 [8,] 0.9589087218 0.037756471 0.0025887785 0.0007460288
 [9,] 0.9525741268 0.043553470 0.0030057462 0.0008666572
[10,] 0.9453186828 0.050185044 0.0034895023 0.0010067708
[11,] 0.9370266439 0.057753230 0.0040506154 0.0011695103
[12,] 0.9275735146 0.066366684 0.0047012815 0.0013585200
[13,] 0.9168273035 0.076139109 0.0054555591 0.0015780281
[14,] 0.9046505351 0.087186894 0.0063296322 0.0018329389
[15,] 0.8909031788 0.099625778 0.0073421039 0.0021289397
[16,] 0.8754466418 0.113566416 0.0085143195 0.0024726232
[17,] 0.8581489351 0.129108715 0.0098707203 0.0028716292
[18,] 0.8388910504 0.146334918 0.0114392244 0.0033348073
[19,] 0.8175744762 0.165301490 0.0132516299 0.0038724034
[20,] 0.7941296282 0.186030066 0.0153440326 0.0044962732
[21,] 0.7685247835 0.208497847 0.0177572442 0.0052201257
[22,] 0.7407748992 0.232628107 0.0205371921 0.0060598015
[23,] 0.7109495026 0.258281638 0.0237352722 0.0070335872
[24,] 0.6791786992 0.285250112 0.0274086181 0.0081625712
[25,] 0.6456563062 0.313252416 0.0316202346 0.0094710436
[26,] 0.6106392339 0.341934893 0.0364389305 0.0109869426
[27,] 0.5744425168 0.370876166 0.0419389678 0.0127423495
[28,] 0.5374298453 0.399596799 0.0481993244 0.0147740317
[29,] 0.5000000000 0.427573515 0.0553024520 0.0171240333
[30,] 0.4625701547 0.454257149 0.0633323908 0.0198403057
[31,] 0.4255574832 0.479093052 0.0723720950 0.0229773699
[32,] 0.3893607661 0.501542413 0.0824998276 0.0265969936
[33,] 0.3543436938 0.521102948 0.0937844988 0.0307688594
[34,] 0.3208213008 0.537327634 0.1062798756 0.0355711893
[35,] 0.2890504974 0.549840553 0.1200176714 0.0410912782
[36,] 0.2592251008 0.558349375 0.1349996506 0.0474258732
[37,] 0.2314752165 0.562654412 0.1511890546 0.0546813172
[38,] 0.2058703718 0.562654412 0.1685018604 0.0629733561
[39,] 0.1824255238 0.558349375 0.1867986155 0.0724264854
[40,] 0.1611089496 0.549840553 0.2058778009 0.0831726965
[41,] 0.1418510649 0.537327634 0.2254718359 0.0953494649
[42,] 0.1245533582 0.521102948 0.2452468726 0.1090968212
[43,] 0.1090968212 0.501542413 0.2648074079 0.1245533582
[44,] 0.0953494649 0.479093052 0.2837064183 0.1418510649
[45,] 0.0831726965 0.454257149 0.3014612051 0.1611089496
[46,] 0.0724264854 0.427573515 0.3175744762 0.1824255238
[47,] 0.0629733561 0.399596799 0.3315594735 0.2058703718
[48,] 0.0546813172 0.370876166 0.3429673003 0.2314752165
[49,] 0.0474258732 0.341934893 0.3514141331 0.2592251008
[50,] 0.0410912782 0.313252416 0.3566058089 0.2890504974
[51,] 0.0355711893 0.285250112 0.3583573984 0.3208213008
[52,] 0.0307688594 0.258281638 0.3566058089 0.3543436938
[53,] 0.0265969936 0.232628107 0.3514141331 0.3893607661
[54,] 0.0229773699 0.208497847 0.3429673003 0.4255574832
[55,] 0.0198403057 0.186030066 0.3315594735 0.4625701547
[56,] 0.0171240333 0.165301490 0.3175744762 0.5000000000
[57,] 0.0147740317 0.146334918 0.3014612051 0.5374298453
[58,] 0.0127423495 0.129108715 0.2837064183 0.5744425168
[59,] 0.0109869426 0.113566416 0.2648074079 0.6106392339
[60,] 0.0094710436 0.099625778 0.2452468726 0.6456563062
[61,] 0.0081625712 0.087186894 0.2254718359 0.6791786992
[62,] 0.0070335872 0.076139109 0.2058778009 0.7109495026
[63,] 0.0060598015 0.066366684 0.1867986155 0.7407748992
[64,] 0.0052201257 0.057753230 0.1685018604 0.7685247835
[65,] 0.0044962732 0.050185044 0.1511890546 0.7941296282
[66,] 0.0038724034 0.043553470 0.1349996506 0.8175744762
[67,] 0.0033348073 0.037756471 0.1200176714 0.8388910504
[68,] 0.0028716292 0.032699560 0.1062798756 0.8581489351
[69,] 0.0024726232 0.028296236 0.0937844988 0.8754466418
[70,] 0.0021289397 0.024468054 0.0824998276 0.8909031788
[71,] 0.0018329389 0.021144431 0.0723720950 0.9046505351
[72,] 0.0015780281 0.018262278 0.0633323908 0.9168273035
[73,] 0.0013585200 0.015765513 0.0553024520 0.9275735146
[74,] 0.0011695103 0.013604521 0.0481993244 0.9370266439
[75,] 0.0010067708 0.011735579 0.0419389678 0.9453186828
[76,] 0.0008666572 0.010120285 0.0364389305 0.9525741268
[77,] 0.0007460288 0.008725015 0.0316202346 0.9589087218
[78,] 0.0006421797 0.007520391 0.0274086181 0.9644288107
[79,] 0.0005527786 0.006480809 0.0237352722 0.9692311406
[80,] 0.0004758176 0.005583984 0.0205371921 0.9734030064
[81,] 0.0004095672 0.004810559 0.0177572442 0.9770226301

lordif documentation built on May 2, 2019, 2:13 p.m.