Re: [R] Generate Random Draw from Gamma Distribution Re: Monte Carlo Simulation in R...

2009-11-10 Thread David Winsemius
han, Ph.D. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org ] On Behalf Of David Winsemius Sent: Tuesday, November 10, 2009 2:47 PM To: Hongwei Dong Cc: R-help Forum; Duncan Murdoch Subject: Re: [R] Generate Random Draw from Gamma Distribution Re:

Re: [R] Generate Random Draw from Gamma Distribution Re: Monte Carlo Simulation in R...

2009-11-10 Thread David Winsemius
> > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org > ] On > Behalf Of David Winsemius > Sent: Tuesday, November 10, 2009 2:47 PM > To: Hongwei Dong > Cc: R-help Forum; Duncan Murdoch > Subject: Re: [R] Generate Rando

Re: [R] Generate Random Draw from Gamma Distribution Re: Monte Carlo Simulation in R...

2009-11-10 Thread Ravi Varadhan
.org] On Behalf Of Hongwei Dong Sent: Tuesday, November 10, 2009 4:44 PM To: R-help Forum Subject: Re: [R] Generate Random Draw from Gamma Distribution Re: Monte Carlo Simulation in R... By the way, maybe the number of groups can be determined endogenously. It will be better if I do not have to set th

Re: [R] Generate Random Draw from Gamma Distribution Re: Monte Carlo Simulation in R...

2009-11-10 Thread Hongwei Dong
sonal_pages/Varadhan.html> >> >> >> >> >> ---------------- >> ---- >> >> >> -Original Message- >> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-proj

Re: [R] Generate Random Draw from Gamma Distribution Re: Monte Carlo Simulation in R...

2009-11-10 Thread Hongwei Dong
-boun...@r-project.org] > On > Behalf Of David Winsemius > Sent: Tuesday, November 10, 2009 2:47 PM > To: Hongwei Dong > Cc: R-help Forum; Duncan Murdoch > Subject: Re: [R] Generate Random Draw from Gamma Distribution Re: Monte > Carlo Simulation in R... > > > On Nov 10, 2009

Re: [R] Generate Random Draw from Gamma Distribution Re: Monte Carlo Simulation in R...

2009-11-10 Thread Ravi Varadhan
an.h tml -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Hongwei Dong Sent: Tuesday, November 10, 2009 2:57 PM To: David Winsemius Cc: R-help Forum Subject: Re: [R] Generate Random Draw from Gamma Distribution Re: Monte Carlo Simulat

Re: [R] Generate Random Draw from Gamma Distribution Re: Monte Carlo Simulation in R...

2009-11-10 Thread Ravi Varadhan
: Hongwei Dong Cc: R-help Forum; Duncan Murdoch Subject: Re: [R] Generate Random Draw from Gamma Distribution Re: Monte Carlo Simulation in R... On Nov 10, 2009, at 2:26 PM, Hongwei Dong wrote: > Exactly! Thanks, Duncan. > > Let me re-phrase me question like this: > > 1) X_i value

Re: [R] Generate Random Draw from Gamma Distribution Re: Monte Carlo Simulation in R...

2009-11-10 Thread Hongwei Dong
Thanks. I tried the rgamma function too. But I'm still wondering how I can set the min, max, and sum of the variates created by the random draws. Anyone has a clue? Thanks. Garry On Tue, Nov 10, 2009 at 11:47 AM, David Winsemius wrote: > > On Nov 10, 2009, at 2:26 PM, Hongwei Dong wrote: > >

Re: [R] Generate Random Draw from Gamma Distribution Re: Monte Carlo Simulation in R...

2009-11-10 Thread David Winsemius
On Nov 10, 2009, at 2:26 PM, Hongwei Dong wrote: Exactly! Thanks, Duncan. Let me re-phrase me question like this: 1) X_i values are independent Gammas, with the shape 0.067 and scale 0.008 2) Min(X)=1 and Max(X)=85 You might want to check that your parameterization in in agreement with

[R] Generate Random Draw from Gamma Distribution Re: Monte Carlo Simulation in R...

2009-11-10 Thread Hongwei Dong
Exactly! Thanks, Duncan. Let me re-phrase me question like this: 1) X_i values are independent Gammas, with the shape 0.067 and scale 0.008 2) Min(X)=1 and Max(X)=85 3) SUM(X)=2000 4) Do I also have to define the number of draws? if yes, it could be 250. Based on these restrictions, I want to ge