IRF: Plot item response curves

Description Usage Arguments Details Author(s) See Also Examples

View source: R/IRF.R

Description

A function to plot item response curves as a function of latent ability for unidimensional 1PL, 2PL, and 3PL models.

Usage

1
2
## S3 method for class 'flirt'
IRF(alpha=NULL, beta, guess=NULL , inside=NULL, ylim=NULL)

Arguments

alpha

α_i parameter estimates. If NULL, α_i=1

beta

β_i parameter estimates

guess

c_i (guessing) parameter estimates. If NULL, c_i=0

inside

If TRUE, P_i = c_i + \frac{(1-c_i)}{1+ exp(-α_i (θ_p + β_i))} is estimated

ylim

the y limits of the plot.

Details

For single and multiple items.

Author(s)

Minjeong Jeon <jeon.117@osu.edu>

See Also

flirt

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(flirt)

## verbal aggression data

data(verb2)

# 2-dimensional 2PL model  for binary data:  a(th+b) parameterization
result2 <- flirt(data=verb2, loading=list(on=T, inside=T), control=list(nq=5) )
alpha <- result2@pars[1:24,2]
beta <- result2@pars[25:48,1]

# item resonse curve for four items              
IRF(beta=beta[1:4], alpha=alpha[1:4], inside=T)

seonghobae/flirt.x32 documentation built on May 29, 2019, 6:54 p.m.