reconstruct: reconstructs N by J data matrix using the estimated item...

Description Usage Arguments Value See Also Examples

View source: R/reconstruct.R

Description

To reconstruct without c or g, use get_ideal_resp(Q_est,Z_est)

Usage

1
reconstruct(Z_est, Q_est, c, g, model = "DINA")

Arguments

Z_est

N by K of estimated attributes

Q_est

J by K of estimated Q

c

J vector of 1-slipping parameters

g

J vector of guessing parameters

model

"DINA" (default), or "DINO"

Value

N by J matrix; use p_correct >0.5 as reconstruction

See Also

get_ideal_resp

Examples

1
2
3
4
5
6
7
set.seed(60)
Z_est <- matrix((rnorm(200)>0)+0,nrow=50,ncol=4)
Q_est <- matrix(c(1,1,1,1,0,0,1,0,1,0,1,0,1,1,1,0,0,0,0,1,1,0,0,1),ncol=4,
byrow=TRUE)
c <- rep(0.8,nrow(Q_est))
g <- 1-c
reconstruct(Z_est,Q_est,c,g)

zhenkewu/slamR documentation built on March 8, 2020, 1:31 a.m.