Hello Dear,
I am trying to generate samples by using Monte Carlo simulation. For
example,
1000 samples, Exponential distribution (f(x), lambda=0.0005, 0=x=360)
Is there any package for Monte Carlo or just use random sample generation
function?
Many thank you for your help in advance,
Jin
--
5000 samples, Exponential distribution (f(x), lambda=0.0005, 0=x=360)
If you don't need the truncation at 360 you can just use rgamma to generate
the exponentials
rgamma(5000,shape=1,rate=0.0005)
(It's not 100% clear but I assume your lambda is an inverse of a scale
parameter)
Why are you
2 matches
Mail list logo