# Example 1. Display probability density curve for the
# score index values for the short SweSAT multiple choice test with
# 24 items and 1000 examinees
index <- Quant_13B_problem_parmList$index
Qvec <- Quant_13B_problem_parmList$Qvec
# plot the density for the score indices within interval c(0,100)
oldpar <- par(no.readonly=TRUE)
on.exit(oldpar)
par(mfrow=c(2,1))
density_plot(index, c(0,100), Qvec, xlabstr="Score index",
titlestr="SweSAT 13B Theta Density",
scrnbasis=11, nfine=101)
# arc length or information values
scopevec <- Quant_13B_problem_infoList$scopevec
Qinfovec <- Quant_13B_problem_infoList$Qinfovec
infoSurp <- Quant_13B_problem_infoList$infoSurp
# plot the density for the score indices within interval c(0,infoSurp)
density_plot(scopevec, c(0,infoSurp), Qinfovec, xlabstr="Score index",
titlestr="SweSAT 13B Theta Density",
scrnbasis=11, nfine=101)
Run the code above in your browser using DataLab