The logit transformation takes a probability (p) and transforms it using
logit = log( p / (1 - p) )
The equation you are using to transform logits into probabilities is simply the inverse logit function:
p = exp(logit) / (1 + exp(logit))
The probit function, however, takes a probability and finds the associated z score (quantile in a standard normal distribution). For instance, the z scores associated with -1.96, -1, and 0 should look familiar if you run this syntax:
?qnorm
qnorm(p = c(-1.96, -1, 0))
To transform the probits back into probabilities, you can apply the inverse of the qnorm() function, which is the pnorm() function:
prob <- pnorm(probits)
where I *think* you still use the same equation for calculating an individual's probit from the item and person parameters:
probits <- loading * (trait - threshold)
prob <- pnorm(probits)
These functions are vectorized in R, so you shouldn't have to loop over [i] individuals, but your answer will be the same if you do.
Terry