manoa
08-05-2011, 08:48 PM
Hi all,
How do I generate count data from a gamma distribution, preferably using SAS?
For example, I assume that frequency of persons born in each month during 1992 follows a Gamma distribution. So the data would looks like this:
month_born
1
1
12
12
3
3
3
...
So if you do a histogram on this, it would look like a gamma dist.
(I know this may not be realistic, but just assume it is!)
How do I generate my data, so the data come from a Gamma? Thanks.
How do I generate count data from a gamma distribution, preferably using SAS?
For example, I assume that frequency of persons born in each month during 1992 follows a Gamma distribution. So the data would looks like this:
month_born
1
1
12
12
3
3
3
...
So if you do a histogram on this, it would look like a gamma dist.
(I know this may not be realistic, but just assume it is!)
How do I generate my data, so the data come from a Gamma? Thanks.