Agriculture Reference
In-Depth Information
To extract the replication number, you would select the same func-
tion dialog, enter rep for the new variable name and for the expression
enter int ( entry/100 ) . This divides the entry by 100 and the int
takes just the integer part of the number. With 403, divide by 100
and the integer portion is 4. In this case, we could have selected the
menu item
Data > Create or change data > Change contents of
variable
Select entry under Variable:, which will be changed to the replication
because we no longer need the entry information. I find it better to go
ahead and create a new variable just in case.
Use these functions in the Command window:
generate variety = mod ( entry,100 )
generate rep = int ( entry/100 )
The first creates the variety variable extracted from entry and the sec-
ond the replication (rep). At this point, this dataset would be ready
for analysis.
Once you have entered or imported your data and arranged your
variables for analysis, you may wish to add additional information to
the dataset, such as the Label that was used from within the Data
Editor. Such detailed information may not seem necessary when first
working with a dataset, but over time you may forget what the data
represented and how the experiment was arranged—dates, places,
etc. Much of this detail information can be easily added to a dataset
ensuring that, if you do have to come back to the dataset years later or
if a colleague needs the information, it will still make sense.
There are two types of information that can be added to a dataset.
The first are labels, which were covered earlier in the Data Entry sec-
tion. Labels are short descriptions for variables or for the dataset as
a whole. These are 80 characters or less in length. In addition, value
labels can substitute a label for a variable number, such as a variety
name or treatment name (see Data entry section). Labels appear when
you use the describe command.
Search WWH ::




Custom Search