Re: [R] Monte Carlo simulation in R

2010-03-24 Thread Ted Harding
On 24-Mar-10 01:05:56, Hongwei Dong wrote: > Hi, R-helpers, > > I'm trying to use R to do a Monte Carlo simulation and need > the help. What I have is a matrix that consists of the probabilities > for the persons to choose zones. For example, in the matrix shown > below, each column represents a p

Re: [R] Monte Carlo simulation in R

2010-03-23 Thread David Winsemius
On Mar 23, 2010, at 9:05 PM, Hongwei Dong wrote: Hi, R-helpers, I'm trying to use R to do a Monte Carlo simulation and need the help. What I have is a matrix that consists of the probabilities for the persons to choose zones. For example, in the matrix shown below, each column represents

[R] Monte Carlo simulation in R

2010-03-23 Thread Hongwei Dong
Hi, R-helpers, I'm trying to use R to do a Monte Carlo simulation and need the help. What I have is a matrix that consists of the probabilities for the persons to choose zones. For example, in the matrix shown below, each column represents a person, and each row represents a zone. So, the probabil

Re: [R] Monte Carlo Simulation in R...

2009-11-10 Thread Duncan Murdoch
On 11/10/2009 1:25 PM, Hongwei Dong wrote: Hi, Dear R users, I'm wondering if I can do Monte Carlo Simulation in R. My problem is like this: I know variable X follows Gamma distribution with shape parameter 0.067 and scale parameter 0.008. The sum of the X is 2000. I need R help me to simulate a

[R] Monte Carlo Simulation in R...

2009-11-10 Thread Hongwei Dong
Hi, Dear R users, I'm wondering if I can do Monte Carlo Simulation in R. My problem is like this: I know variable X follows Gamma distribution with shape parameter 0.067 and scale parameter 0.008. The sum of the X is 2000. I need R help me to simulate a vector of X that satisfies both the probabil