Re: [R] LHS random number generator

2021-04-14 Thread Rob C
Shah, I am the maintainer of the lhs package. Please feel free to contact package maintainers directly for help specific to their package. If I understood your request, this is how I would construct the lhs... prior_lhs <- data.frame( name = c("r_mu", "r_sd", "lmp", "gr_mu", "gr_sd", "alpha1"

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

2017-05-30 Thread Rob C
t;- c(9, 11, 10, 8.9, 8, 7, 6, 5.8, 5.1, 4, 3.9, 3.7, 3.4, 3.1, 2, 1.9, > 1.6, 1.4, 1, 0.9, 0.8, 0.7, 0.4, 0.3, 0.1) > > x <- seq(1, 25, by = 1) > > barplot(y/100, names.arg=x, ylab="Probability", xlab="Distance (km)") > > > > With this con

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 paramet