As someone replied before, perhaps you could use rlnorm. Type ?rlnorm for more information.
d1 <- (10000, meanlog = 10, sdlog = 10) d2 <- (10000, meanlog = 25, sdlog = 5) Would that do the trick? Kind regards, Sander On Tue, Jan 24, 2017 at 10:28 PM, Steven Stoline <[email protected]> wrote: > Dear All: > > > I did mean how to conduct such simulation in R. > > Let me make it more simple. > > Want to simulate two independent log-normal distributions with parameters: > > Log-normal Distribution 1: mu1 = 50, sigma1 = 10 > > Log-normal Distribution 2: mu2 = 25, sigma2 = 5 > > > with thanks > stive > > On Tue, Jan 24, 2017 at 3:59 PM, Albyn Jones <[email protected]> wrote: > > > "I also don't see what this has to do with how to use R to teach > > statistics." me neither. > > it looks like a question for the r-help list. > > > > On Tue, Jan 24, 2017 at 12:57 PM, Jeff Laux <[email protected]> wrote: > > > >> This doesn't really make sense. I can't figure out what you mean by > >> having > >> the parameters "fall in the range". Do you want to do a Bayesian > >> simulation where the prior is a uniform on those ranges? I don't > >> understand what you mean by "how to assure independency" either. I also > >> don't see what this has to do with how to use R to teach statistics. > >> > >> > >> On Tue, Jan 24, 2017 at 2:59 PM, Steven Stoline <[email protected]> > >> wrote: > >> > >> > Dear All: > >> > > >> > > >> > I want to simulate two independent log-normal distributions 10,000 > times > >> > (say) > >> > > >> > *Log-normal 1: * -10 <= mu1 <=100 and 0< sigma1 <=25 (say) > >> > > >> > *Log-normal 2: * 5 <= mu2 <=50 and 0< sigma2 <=10 (say) > >> > > >> > > >> > Your help will be highly appreciated. > >> > > >> > > >> > > >> > Thank you very much for your support and help. > >> > > >> > > >> > with thanks > >> > steve > >> > > >> > -- > >> > Steven M. Stoline > >> > [email protected] > >> > > >> > [[alternative HTML version deleted]] > >> > > >> > _______________________________________________ > >> > [email protected] mailing list > >> > https://stat.ethz.ch/mailman/listinfo/r-sig-teaching > >> > > >> > >> [[alternative HTML version deleted]] > >> > >> _______________________________________________ > >> [email protected] mailing list > >> https://stat.ethz.ch/mailman/listinfo/r-sig-teaching > >> > > > > > > > -- > Steven M. Stoline > 1123 Forest Avenue > Portland, ME 04112 > [email protected] > > [[alternative HTML version deleted]] > > _______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-sig-teaching > [[alternative HTML version deleted]] _______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-teaching
