compute the likelihood of a polytomous response pattern
Source:R/fct_cat_engine_rsm.R
compute_likelihood_rsm.Rdcompute the likelihood of a polytomous response pattern
Note
this is the polytomous counterpart of prod(Pi^x*(1-Pi)^(1-x)) used for the 4PL
model
compute_pi_rsm returns a matrix so the response of item i selects the column x[i]+1
the +1 is index bookkeeping because categories start at 0 and R columns start
at 1
the responses are multiplied across items under the local independence assumption