Re: [R] Latin Hypercube Sampling with a condition

2011-06-02 Thread Duarte Viana
Thanks again Rob for your help. In terms of parameter comparison there won't be a problem. However, if one wants to assume a particular distribution (and not the one given by the imposed condition), for example an uniform distribution to obtain all the possible combinations (all the multidimension

Re: [R] Latin Hypercube Sampling with a condition

2011-06-02 Thread Rob Carnell
Duarte Viana gmail.com> writes: > > Thanks Rob and Ravi for the replies. > > Let me try to explain my problem. I am trying to make a kind of > sensitivity analysis where I have 5 parameters (the margins of the > Latin hypercube), 3 of them are proportions that should sum to one. My > idea is to

Re: [R] Latin Hypercube Sampling with a condition

2011-06-02 Thread Ravi Varadhan
[carne...@battelle.org] Sent: Thursday, June 02, 2011 8:30 AM To: r-h...@stat.math.ethz.ch Subject: Re: [R] Latin Hypercube Sampling with a condition Duarte Viana gmail.com> writes: > > Hello all, > > I am trying to do a Latin Hypercube Sampling (LHS) to a 5-parameter > design

Re: [R] Latin Hypercube Sampling with a condition

2011-06-02 Thread Rob Carnell
Duarte Viana gmail.com> writes: > > Hello all, > > I am trying to do a Latin Hypercube Sampling (LHS) to a 5-parameter > design matrix. I start as follows: > > library(lhs) > > p1<-randomLHS(1000, 5) > > If I check the distribution of each parameter (column), they are > perfectly uniformly d