N is generated from the desired quantile distribution functions
and corrected to have a correlation matrix similar to the prescribed by the parameter COR. The specified model is run with the data from the LHS. If repetitions
is set to more than one, the model will be run several times for each data point.
Partial rank correlation coefficients are estimated.
When the LHS function is called with no model (i.e., with argument
model=NULL), it generates an incomplete object storing the Latin
Hypercube samples, and allowing the user to run the simulation
model independently. The method tell allows to pass the simulation
results to the incomplete object.
LHS(model = NULL, factors, N, q, q.arg, res.names = NULL,
COR, eps = 5e-04, nboot = 0, repetitions=1)
## S3 method for class 'LHS':
tell(x, y, res.names = NULL, nboot = 0, \dots)
## S3 method for class 'LHS':
print(x, \dots)NULL, no function is run and the object generated is incomplete, see also the tell method.completelHS <- LHS(model=function(x) x[,1]+x[,2]*x[,3], factors=3, N=20)
incompleteLHS <- LHS(factors=5, N=30)
incompleteLHS <- tell(incompleteLHS, seq(1,30))Run the code above in your browser using DataLab