powered by
This function evaluates the log-likelihood of the response for a given value of the parameters.
llike(Y, W, tau)
value of log-likelihood at Y, W and tau
ordinal response
global variance
cut-points
set.seed(1234) K = 3 # number of response categories Y = sample(1:K, 10, replace=TRUE) # generate responses W = 1 tau = c(-1, 1) # set parameter values llike(Y, W, tau)
Run the code above in your browser using DataLab