Re: [R] Latin Hypercube Sample and transformation to uniformly distributed integers or classes

2013-10-09 Thread Rob Carnell
Johannes Radinger johannesradinger at gmail.com writes: Hi, I'd like to use Latin Hypercube Sampling (LHC) in the the context of uncertainty / sensitivity analysis of a complex model with approximately 10 input variables. With the LHC approach I'd like to generate parameter combinations

Re: [R] latin hypercube sampling

2013-02-19 Thread Rob Carnell
Aimee Kopolow alj27 at georgetown.edu writes: Hi all, I am attempting to use latin hypercube sampling to sample different variable functions in a series of simultaneous differential equations. There is very little code online about lhs or clhs, so from different other help threads I have

Re: [R] Latin Hypercube Sampling with a condition

2011-06-02 Thread Rob Carnell
Duarte Viana viana.sptd at 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

Re: [R] Latin Hypercube Sampling with a condition

2011-06-02 Thread Rob Carnell
Duarte Viana viana.sptd at 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

Re: [R] Latin Hypercube with condition sum = 1

2008-11-25 Thread Rob Carnell
)) range(Y) ws - randomLHS(1000, 7) wsSums - rowSums(ws) wss - ws / wsSums stopifnot(all(abs(rowSums(wss)-1) 1E-12)) range(wss) I hope this helps! Rob Rob Carnell Battelle Principal Research Scientist __ R-help@r-project.org mailing list https