Description Usage Arguments Author(s) See Also Examples
This plotting routine draws the Category Characteristic Curves (CCC) for each item.
1 2 |
x |
Commit an object of class 'nrm' which is a result of the |
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. |
Manuel Reif
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.