get_ideal_resp_R: get ideal response for DINA R

Description Usage Arguments Value Examples

View source: R/simulate.R

Description

replace Z by 1-Z and 1- the resultant matrix gives the ideal response matrix for DINO

Usage

1

Arguments

Q

Q matrix of size J by K

Z

latent attribute profiles of individuals; N by K

Value

binary ideal response matrix of size N by J

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Z <- rbind(c(1,1,1),c(0,0,1))
Q <- matrix(c(0,0,0, 0,0,1, 0,1,0,
              0,1,1, 1,0,0, 1,0,1,
              1,1,0, 1,1,1),ncol=3,byrow=TRUE)
get_ideal_resp(Q,Z)

get_ideal_resp_R(Q=matrix(c(1,1,0,
                          0,0,1,
                          0,1,0,
                          1,0,1),nrow=4,byrow=TRUE),
               Z = rbind(c(1,1,1),c(0,0,0)))

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