person.fit.pattern: Person fit based on response pattern

View source: R/person.fit.R

person.fit.patternR Documentation

Person fit based on response pattern

Description

Person fit based on response pattern

Usage

person.fit.pattern(
  do = NULL,
  resp = NULL,
  items = NULL,
  item.params = matrix(),
  param.type = c("pcm", "log.item.score", "multiplicative", "xsi"),
  num.montecarlo = 0,
  verbose = T,
  extra.verbose = F
)

Arguments

do

a DIGRAM object

resp

a matrix of responses (if no DIGRAM object is supplied)

items

a vector of items to use

item.params

a matrix of item parameters. Items in rows, thresholds in columns

param.type

Type of item parameters given. One of pcm (RUMM2030), log.item.score (?), multiplicative (DIGRAM or RDigram, xsi (Conquest or TAM))

num.montecarlo

the number of iterations if the calculation of alternative patterns should be done using a montecarlo solution. 0 to do all patterns.

verbose

set to TRUE if you want to follow the progression

extra.verbose

Print warnings in PDF and HTML-output

Value

Returns a list of results for each respondent, consisting of response pattern probability and the p-value of getting this pattern or a pattern of lower probability.

Author(s)

Jeppe Bundsgaard & Svend Kreiner

References

Jeppe Bundsgaard & Svend Kreiner (2019). Undersøgelse af De Nationale Tests måleegenskaber. 2nd Ed. Copenhagen: DPU, Aarhus University.

Examples

data(DHP)
item.params<-matrix(c(1.000,2.283,1.150,0.509,
                      1.000,1.117,2.630,6.082,
                      1.000,1.380,4.105,2.058,
                      1.000,0.276,0.127,0.070,
                      1.000,2.141,0.330,0.472,
                      1.000,10.304,2.963,4.784),byrow=T,nrow=6)
person.fit.pattern(do=DHP, item.params=item.params,param.type="multiplicative")

jeppebundsgaard/RDigram documentation built on Oct. 29, 2023, 7:15 p.m.