On 26-10-2012, at 21:41, Richard James wrote: > > That solution works very well. > > The only issue is that 'rnorm' occasionally generates negative values which > aren't logical in this situation. >
Try another random generator. Lognormal, uniform, ... > Is there a way to set a lower limit of zero? Truncated normal perhaps? Berend ______________________________________________ R-help@r-project.org 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.