Hi

My simulation with the followin R code works perfectly:
sim <- replicate(999, sum(exp(rgamma(rpois(1,2000), scale = 0.5, shape = 12))))

But now I do not want to have values in object "sim" exceeding 5'000'000, that 
means that I am just using the beginning of densitiy function gamma x < 15.4. 
Is there a possibility to modify my code in an easy way?

Thanks for any help!

Regards, Brigitte







        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to