stdrange | R Documentation |
Simple functions for rescaling a data matrix to a coded design and back. stdrange
converts
the design in actual measurements into a coded design, while ustdrange
reverses the process
(if the correct arguments are given).
stdrange(x, mins = apply(x, 2, min), maxs = apply(x, 2, max))
ustdrange(x, mins, maxs)
x |
matrix containing the design, or an object coercible to a matrix. |
mins |
vector of original values, one for each column, which should be recoded to the value -1; or which have alreadty been recoded to -1. This and the next argument are both recycled if not of the correct length. |
maxs |
vector of original values which should be recoded as 1, or which have already been recoded to 1. |
Pieter C. Schoonees
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.