Description Usage Arguments Value See Also Examples
unscalemat()
is a helper function to rescale a matrix back to its original ranges. Typically this is used to rescale the posterior samples of the parameters back to their original scale.
1 | unscalemat(mat,r)
|
mat |
An n \times p matrix of numbers scaled to the [0,1] hypercube |
r |
An p \times 2 matrix of the original ranges of the variables |
A n \times p matrix with variables rescaled back to their original ranges, as specified by ranges
.
1 2 3 4 5 6 | library(demu)
design=matrix(runif(10,1,5),ncol=2,nrow=5)
r=getranges(design)
design=scaledesign(design,r)
unscalemat(design,r)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.