"Zhou Yang" wrote in message <firstname.lastname@example.org>... > I can generate gamma random variable using GAMRND(A,B). I estimate A and B using PARMHAT = GAMFIT(X). I imported my data set from Excel to "X". The results give random variables with some values greater than 1. But I want to generate random variables between 0 and 1. Is it possible with "parmhat", if so what is the syntax? > Thanks
I don't know the background of your question, but maybe you will have to estimate the parameters A and B of a truncated gamma distribution (truncated at x=1). Generating random numbers of this distribution will result in values between 0 and 1.