Dear All, is there a way to set low and high limits to a simulation with rlnorm()? as an example: a <-rlnorm(500,0.7,1) I get the summary of Min. 1st Qu. Median Mean 3rd Qu. Max. 0.1175 1.0590 2.1270 3.4870 4.0260 45.3800
I would like to set limits so that the simulated values minimum would be greater then 0.5 and maximum of less than 30. If during simulation a value outside of the limits would be simulated, then I would like R to "throw that value out" and go back to generate another random number instead that would fit the limits criteria. Apreciate all the help on this, Sincerely, Andras [[alternative HTML version deleted]]
______________________________________________ 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.