knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of genIRT is to generate the dichotomously scored response data from two parameter logistic model (2PL).
You can install the released version of genIRT from CRAN with:
install.packages("genIRT")
This is a basic example which shows you how to generate a response data:
library(genIRT) ## basic example code mydata=sim2pldat(10,ilocation=NULL,islope=NULL,plocation=rnorm(500,0,1),rnum=0.6)
To get parameter values and response data, separately.
mydata$i.loc mydata$i.slp mydata$p.loc mydata$resp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.