[R] Latin Hypercube with condition sum = 1

Rainer M Krug r.m.krug at gmail.com
Sun Nov 23 17:37:31 CET 2008


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:

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 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

More information about the R-help mailing list