Action Principale : countregViewStore
| 1 | DATA casuser.Charity; |
| 2 | DO i = 1 to 100; |
| 3 | Age = 20 + int(60 * ranuni(1)); |
| 4 | Income = 30000 + int(70000 * ranuni(1)); |
| 5 | lambda = exp(-2 + 0.03 * Age + 0.00001 * Income); |
| 6 | NumDonations = ranpoi(1, lambda); |
| 7 | OUTPUT; |
| 8 | END; |
| 9 | RUN; |