[R-sig-teaching] Simulated Two Independent Log-normal Distributions
Sander
sander1981 at gmail.com
Tue Jan 24 22:33:51 CET 2017
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 <sstoline at gmail.com> 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 <jones at reed.edu> 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 <jefflaux at gmail.com> 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 <sstoline at gmail.com>
> >> 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
> >> > sstoline at gmail.com
> >> >
> >> > [[alternative HTML version deleted]]
> >> >
> >> > _______________________________________________
> >> > R-sig-teaching at r-project.org mailing list
> >> > https://stat.ethz.ch/mailman/listinfo/r-sig-teaching
> >> >
> >>
> >> [[alternative HTML version deleted]]
> >>
> >> _______________________________________________
> >> R-sig-teaching at r-project.org mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-sig-teaching
> >>
> >
> >
>
>
> --
> Steven M. Stoline
> 1123 Forest Avenue
> Portland, ME 04112
> sstoline at gmail.com
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-teaching at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-teaching
>
[[alternative HTML version deleted]]
More information about the R-sig-teaching
mailing list