I appreciate your solution. I solved the problem using the %do loop, but I thought there were some function like scan that select the k-th element from a list macro variable.
... View more
While searching my blog for something, I realized that I blogged about how to simulate from the inverse gamma distriution in 2014:
"Simulating from the Inverse Gamma Distribution in SAS"
... View more