11.07.2015 Views

Download pdf guide - VSN International

Download pdf guide - VSN International

Download pdf guide - VSN International

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5 Command file: Reading the data 55List of transformation qualifiers and their actions with examplesqualifier argument action examplesNewNewNewNew!SEEDvsets the seed for the random numbergenerator.!SET vlist for vlist, a list of n values, the datavalues 1 . . . n are replaced by the correspondingelement from vlist; datavalues that are < 1 or > n are replacedby zero. vlist may run overseveral lines provided each incompleteline ends with a comma, i.e., a commais used as a continuation symbol (seeOther examples below).!SETN!SETUv nv n!SETN v n replaces data values 1 : nwith normal random variables havingvariance v. Data values outside therange 1 · · · n are set to 0.replaces data values 1 : n with uniformrandom variables having range 0 : v.Data values outside the range 1 · · · nare set to 0.!SUB vlist replaces data values = v i with their indexi where vlist is a vector of n values.Data values not found in vlist are setto 0. vlist may run over several linesif necessary provided each incompleteline ends with a comma. ASReml allowsfor a small rounding error when matching.It may not distinguish properly ifvalues in vlist only differ in the sixthdecimal place (see Other examples below).!SEQ!UNIFORMvreplaces the data values with a sequentialnumber starting at 1 which incrementswhenever the data value changesbetween successive records; the currentfield is presumed to define a factor andthe number of levels in the new factor isset to the number of levels identified inthis sequential process (see Other examplesbelow). Missing values remainmissing.replaces the variate with uniform randomvariables having range 0 : v.· · · !SEED 848586treat !L C A BCvR !=treat !SET 1 -1 -1group !=treat !SET 1,2 2 3 3 4Anorm !=A !SETN 2.5 10Aeff !=A !SETU 5 10year 3 !SUB 66 67 68plot !=V3 !SEQUdat !=0. !Uniform 4.5is equivalent toUdat !=Uniform 4.5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!