stdrange {vdg} | R Documentation |
Standardize or Unstandarize the Column Range
Description
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).
Usage
stdrange(x, mins = apply(x, 2, min), maxs = apply(x, 2, max))
ustdrange(x, mins, maxs)
Arguments
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. |
Author(s)
Pieter C. Schoonees
[Package vdg version 1.2.3 Index]