Hi

I want to du a sensitivity analysis using Latin Hypercubes. But my
parameters have to fulfill two conditions:

1) ranging from 0 to 1
2) have to sum up to 1

So far I am using the lhs package and am doing the following:

library(lhs)
ws <- improvedLHS(1000, 7)
wsSums <- rowSums(ws)
wss <- ws / wsSums

but I think I can't do that, as after the normalization

> min(wss)
[1] 0.0001113015
> max(wss)
[1] 0.5095729

Therefore my question: how can I create a Latin Hypercube whicgh
fulfills the conditions 1) and 2)?

Thanks a lot

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Faculty of Science
Natural Sciences Building
Private Bag X1
University of Stellenbosch
Matieland 7602
South Africa

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to