
Hello

I would like to simulate datasets in the following way:

x <- rpois(999, 2000)
y <- sum(exp(rgamma(x, scale=2, shape=0.5)))

The problem is, that by calling "y" I just get 1 value back and not 999 values. Can anyone help me? Thanks!

Brigitte








	[[alternative HTML version deleted]]

