powered by
Compute the probability matrix given latent parameters from the cumulative model
theta_to_p(theta,omega)
a continuous-valued tensor (latent parameters)
the cut-off points
a probability matrix in which the number of columns is possible outcomes and each row vector is corresponding probabilities at an entry of the tensor
# NOT RUN { indices <- c(10,20,30) arr <- array(runif(prod(indices),-2,2),dim = indices) b <- c(-1.5,0,1.5) probability <- theta_to_p(arr,b);probability # }
Run the code above in your browser using DataLab