> 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
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
> 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
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)
> 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
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),
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
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
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
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
; 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
>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
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
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
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
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
[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
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
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
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
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
21 matches
Mail list logo