| Webjags >> Main page Recent changes | Edit History | |
Built-in models_1PL | ||
|---|---|---|
|
This revision is from 2013/12/26 13:38. You can Restore it. Model (Edit)The one parameter logistic model is also called the Rasch model. Let \(y_{ij}, i=1,\ldots,N, j=1,\ldots,T\) denote the response for person \(i\) on item \(j\) that takes value 0 or 1. The 1PL model can be written as \[ y_{ij} \sim B(p_{ij}) \] \[ \log\frac{p_{ij} }{1-p_{ij} } = \theta_i - \beta_j \] \[ \theta_i \sim N(0,1) \] BUGS code (Edit)
model{
for (i in 1:N){
for (j in 1:T){
#Change logit to probit for ogive model
logit(p[i,j])<-theta[i]-beta[j]
y[i,j]~dbern(p[i,j])
}
theta[i]~dnorm(0,1)
}
for (j in 1:T){
beta[j]~dnorm(0, .0001)
}
}
|
||
| Powered by LionWiki. Last changed: 2024/12/10 23:04 Erase cookies | Edit History | |