Substitution transformations REPLACE RESCALE SEQ SET SUB SPLIT
!REPLACE old new
replaces data values
with new values
in the current variable.
Rate !REPLACE -9 0
!RESCALE o s
rescales the column(s) in the current (!G group of) variable,
group of variables, by adding
and scaling the result by
Rate !RESCALE -10 0.1
replaces the data value
with a sequential number starting at 1 which increments whenever the
data value changes between successive records; the current field is
presumed to define a factor and the number of levels in the new
factor is set to the number of levels identified in this sequential
process. Missing values remain missing.
plot !=V3 !SEQ
for a list of
replaces the data values
by the corresponding element from
data values less than 1 or greater than
are replaced by zero.
may run over several lines provided each incomplete line
ends with a comma, i.e., a comma is used as a continuation symbol.
treat !L C A B
CvR !=treat !SET 1 -1 -1
group !=treat !SET 1,
2 2 3 3 4
replaces data values which appear in the list
with their position number. Data values not found in
are set to 0.0.
run over several lines provided each incomplete line
ends with a comma. ASReml allows for a small rounding error when
matching. It may not distinguish properly if values in
differ in the sixth decimal place.
year 3 !SUB 1966 1967 1968
creates a new (set of) variables by splitting the data value in an
existing (set of) variables g. A number greater than 99 represented as abcd
is changed to ab and the new variable is cd. A number less than 100
represented as bd
is changed to b and the new variable is d.
provides for the situation when marker data is
given in a compressed form: that is a value of 12 actually means
the allelic pair 1 and 2. The transformation is simple minded.
If the data value is less than 100, it is split into two single digit numbers.
Otherwise the last two digits are split off (so that 123 becomes 1 and 23).
The prototye example is
Lallele !G 10 6
Rallele !G 10 6 !SPLIT Lallele
assuming the data values corresponding to Lallele are drawn
from the set (11:16, 21:26, 31:36, 41:46, 51:56, 61:66).
The transformation replaces the data value with the value of the first digit,
and puts the second digit value into Rallele.
Return to start