unscalemat {cmce} | R Documentation |
Unscale a matrix back to its original ranges.
Description
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.
Usage
unscalemat(mat,r)
Arguments
mat |
An |
r |
An |
Value
A n x p
matrix with variables rescaled back to their original ranges, as specified by ranges
.
See Also
Examples
library(cmce)
design=matrix(runif(10,1,5),ncol=2,nrow=5)
r=getranges(design)
design=scaledesign(design,r)
unscalemat(design,r)
[Package cmce version 0.1.0 Index]