plot.nrm: Plotting an object of class nrm

Description Usage Arguments Author(s) See Also Examples

Description

This plotting routine draws the Category Characteristic Curves (CCC) for each item.

Usage

1
2
## S3 method for class 'nrm'
plot(x, numbpoints = 100, fromto = c(-4, 4), ...)

Arguments

x

Commit an object of class 'nrm' which is a result of the nrm function.

numbpoints

A numerical vector of length 1, which denotes the number of points on the x-axis to draw the curves.

fromto

A numerical vector of length 2, which is about the same as xlim.

...

More arguments for plot.

Author(s)

Manuel Reif

See Also

nrm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
## Not run: 

# Simulating 5 Items within a loop
ParList <- lapply(1:5,function(x)
{
  Item1 <- c(c(-2,-1,1,2),c(-1.2,0.3,0.2,0.7))
  names(Item1) <- c(paste("zeta",1:4,sep=""),paste("lamb",1:4,sep=""))
  Item1
})

names(ParList) <- paste("item",1:5,sep="")

# simulate person parameters
perp1     <- rnorm(1500,0,1)

# simulate data.frame 
sim.nrm.1 <- NRM.sim(ParList,perp1)

# reshape
reshdat1 <- reshMG(sim.nrm.1,items=1:5,correct=rep(0,5))

# fit the nrm
res.nrm <- nrm(reshdat1)

# finally the plot
plot(res.nrm)


## End(Not run)

manuelreif/mcIRT documentation built on May 21, 2019, 11:26 a.m.