IRF_pol: Plot category response curves for polytomous items

Description Usage Arguments Details Author(s) See Also Examples

View source: R/IRF.R

Description

A function to plot category response curves as a function of a unidimensional ability for unidimensional graded response models (with a cumulative logit link)

Usage

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

Arguments

alpha

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

beta

β_{ir} parameter estimates for category r to item i

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 + β_{ir}))} is estimated

ylim

the y limits of the plot.

Details

For a single item with three to six response categories.

Author(s)

Minjeong Jeon <jeon.117@osu.edu>

See Also

flirt

Examples

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

## charity data

result4 <- flirt(data=charity, subset=1:100, control=list(minpercent=0.05, nq=5, link="cumulative"))         

beta <- result4@pars[2:14,1]
       
# item response function        
IRF_pol(beta=beta[1:2])  # item 1 with three categories 
IRF_pol(beta=beta[3:5])  # item 2 with four categories 
        

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