Re: [R] Latin hypercube sampling from a non-uniform distribution

2017-08-10 Thread S Ellison
> I think that I need to > draw a Hypercube sample for each age class (i.e., for 0, 1, 2, 3, 4, 5, 6, 7) > in a > given simulation (i.e., N = 1) and the LHS values for all age classes should > be > like the observed cumulative distribution (see attached figure). > output of randomLHS should be

Re: [R] Latin hypercube sampling from a non-uniform distribution

2017-08-08 Thread Marine Regis
Thanks for your answer. I have attached the plot for representing the variable. I think that I need to draw a Hypercube sample for each age class (i.e., for 0, 1, 2, 3, 4, 5, 6, 7) in a given simulation (i.e., N = 1) and the LHS values for all age classes should be like the observed cumulative

Re: [R] Latin hypercube sampling from a non-uniform distribution

2017-08-08 Thread S Ellison
> However, my variable is simulated from the cumulative distribution function > of the Poisson distribution. Then I am afraid I don't know what you're trying to achieve. Or why. However, the principle holds; write a function that maps [0,1] to the 'pattern' you want, do that and apply it to

Re: [R] Latin hypercube sampling from a non-uniform distribution

2017-08-07 Thread Marine Regis
Thanks for your answer. However, my variable is simulated from the cumulative distribution function of the Poisson distribution. So, the pattern obtained from the function "qpois" is not the same as the observed pattern (i.e., obtained from the function "ppois") set.seed(5)

Re: [R] Latin hypercube sampling from a non-uniform distribution

2017-08-07 Thread S Ellison
> How can I draw a Hypercube sample for the variable mortality_probability so > that this variable exhibits the same pattern as the observed distribution? One simple way is to use the uniform random output of randomLHS as input to the quantile function for your desired distribution(s). For

[R] Latin hypercube sampling from a non-uniform distribution

2017-08-04 Thread Marine Regis
Hello, I am performing a sensitivity analysis using a Latin Hypercube sampling. However, I have difficulty to draw a Hypercube sample for one variable. I�ve generated this variable from a Poisson distribution as follows: set.seed(5) mortality_probability <- round(ppois(seq(0, 7, by = 1),

Re: [R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions

2017-06-01 Thread Suzen, Mehmet
No it is an R programming questions. Nelly specifically asked you: "how can I use your code to apply my model to each of the 50 rows of the data frame “tabLHS”?" __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions

2017-06-01 Thread Bert Gunter
gt; > > > Sorry, it’s the first time that I perform a sensitivity analysis using the > LHS. > > > Thank you very much for your time. > > Have a nice day > > Nell > > > > De : Rob C <bertcarn...@gmail.com> > Envoyé : m

Re: [R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions

2017-05-31 Thread Nelly Reduan
ledLHS) Sorry, it’s the first time that I perform a sensitivity analysis using the LHS. Thank you very much for your time. Have a nice day Nell De : Rob C <bertcarn...@gmail.com> Envoyé : mardi 30 mai 2017 16:26:08 À : Nelly Reduan Cc : r-help@r

Re: [R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions

2017-05-30 Thread Rob C
t; > With this condition, is it possible to perform a LHS? > > Thanks a lot for your time. > > Nell > > > > De : R-help <r-help-boun...@r-project.org> de la part de Rob C > <bertcarn...@gmail.com> > Envoyé : samedi 27 ma

Re: [R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions

2017-05-30 Thread Nelly Reduan
; de la part de Rob C <bertcarn...@gmail.com> Envoyé : samedi 27 mai 2017 13:32:23 À : r-help@r-project.org Objet : Re: [R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions >May 26, 2017; 11:41am Nelly Reduan Latin Hypercube Sampling

Re: [R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions

2017-05-27 Thread Rob C
>May 26, 2017; 11:41am Nelly Reduan Latin Hypercube Sampling when parameters >are >defined according to specific probability distributions >Hello, > I would like to perform a sensitivity analysis using a Latin Hypercube > Sampling (LHS). >Among the input parameters in the model, I have a

[R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions

2017-05-26 Thread Nelly Reduan
Hello, I would like to perform a sensitivity analysis using a Latin Hypercube Sampling (LHS). Among the input parameters in the model, I have a parameter �dispersal distance� which is defined according to an exponential probability distribution. In the model, the user thus sets a default

[R] latin hypercube sampling

2013-02-19 Thread Aimee Kopolow
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 seen, it seems I need to create a probability density

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 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 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

[R] Latin Hypercube Sampling with a condition

2011-06-02 Thread Duarte Viana
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 obtain uniform combinations of the 3

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 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

[R] Latin Hypercube Sampling with a condition

2011-05-31 Thread Duarte Viana
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 distributed (as expected).For example, hist(p1[,1]) Now