Hello, everyone!
This is my first post here. I'm also very new to R and data science in general so thanks in advance for the attention and inputs.
I'd like to randomize a certain variable for a project I'm currently working on.
As the initial inputs, let's suppose we have a vector where all values are x=100 for n=1 to n=365 (year).
What I intend to do is to randomize this distribution via lhs (latin hypercube sampling) with varying coefficients of variation:
Simulation #1: coefficient of variation cv = 0,1 (10%)
This should result in a series of lhs-distributed values varying from x=90 to x=110 for n=1 to n=365
Simulation #2: coefficient of variation cv = 0,2 (20%)
This should result in a series of lhs-distributed values varying from x=80 to x=120 for n=1 to n=365
and so on.
It is also important to state that the values of x, n and cv should be changeable.
The figure above illustrates the concept I am intending to reproduce:
Hope this is enough information to make my question clear.
Please reply if more info is needed.
Thanks in advance.
Kind regards from Brazil.