search for: ptheta

Displaying 1 result from an estimated 1 matches for "ptheta".

Did you mean: theta
2009 Apr 13
2
equation help
Hi everyone, I am having a bit of trouble correctly structuring an equation in R. Here is the equation Here is what I thought for(i in 1:numItem)for(x in 1:numCat) Ptheta[,i,x]<-(exp(-1.702*a[i]*(theta-b[i,x+1])) My problem is that I am not sure how to get it to read the equation as having two indexing points (i and x). Right now it is trying to read it as a matrix, but each value (i and x) are only vectors. Does anyone have any suggestions on how to get R...