get_rp: calculates marginal probabilities of all the 2^J possible...

Description Usage Arguments Examples

View source: R/utils.R

Description

calculates marginal probabilities of all the 2^J possible response patterns

Usage

1
get_rp(A, Q, c, g, I_full)

Arguments

A

K-column, latent attribute profile matrix

Q

M by K Q matrix

c

M by 1: 1-slipping

g

M by 1 guessing parameter

I_full

J-column matrix; Each row is one of 2^J patterns under consideration can be generated by rbind(rep(0,J),get_I(J,J))

Examples

1
2
3
4
5
6
A <- rbind(c(1,1,1),c(0,0,1))
Q <- rbind(c(1,0,0),c(1,0,0),c(0,1,0),c(1,1,1))
c <- c(0.8,0.8,0.8,0.8)
g <- 1-c(0.8,0.8,0.8,0.8)
I_full <- rbind(rep(0,4), get_I(4,4))
get_rp(A,Q,c,g,I_full)

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