scaledesign {demu} | R Documentation |
Rescale a design matrix to the [0,1] hypercube.
Description
scaledesign()
is a helper function to rescale a design to the [0,1]
hypercube using variable ranges previously extracted by a call to getranges()
.
Usage
scaledesign(design,r)
Arguments
design |
An |
r |
An |
Value
A n \times p
design matrix rescaled to the [0,1]
hypercube.
See Also
Examples
library(demu)
design=matrix(runif(10,1,5),ncol=2,nrow=5)
r=getranges(design)
scaledesign(design,r)
[Package demu version 0.3.0 Index]