Computes log likelihood for UVSD model
uvsdLogLike(R,NN,NS,I,J,K,dat,cond,Scond,subj,item,lag,blockN,blockS,blockS2,crit)
The function returns the log likelihood.
Total number of trials.
Number of new-item conditions.
Number of studied-item conditions.
Number of subjects.
Number of items.
Number of response options.
Vector of responses, ranging from 0:(K-1).
Vector of condition index.
Vector of new/studied condition index; 0=new, 1=studied.
Vector of subject index, starting at 0 with no missing subject numbers.
Vector of item index, starting at 0 with no missing item numbers.
Vector of lag index.
Block of parameters for new-item means.
Block of parameters for studied-item means.
Block of parameters for Sigma2 values. If there is only one Sigma2 for all participants and items, then the first element of blockS2 should contain this value, and the other elements fo blockS2 should be zero.
VECTOR of criteria including -Inf and Inf for top and bottom critieria, respectively. Vector contains the (K+1) criteria for the first subjects, followed by those for the second subject, etc.
Michael S. Pratte
See Pratte, Rouder, & Morey (2009)
hbmem