Display residuals from a
REML analysis in field layout (R.W. Payne).
|Controls printed output (
||Controls the graphs that are displayed (
||Which random terms to use to calculate the residuals (
||Type of graph (
||Whether to include margins in printed tables (
||Y-axis orientation of the plot (reverse, normal); default
||Pen number to be used for the contours; default 1|
||Pen number(s) defining how to fill the areas between contours; default 3|
||Pen(s) to use for the shade plot; default 3|
||Specifies the y-coordinates of the plots|
||Specifies the x-coordinates of the plots|
||Save structure of the
||Field width for printing the residuals; default 12|
||Number of decimal places to use when printing the residuals|
||Titles for the plots|
VDFIRLDRESIDUALS allows you to display residuals from a
REML analysis in a two dimensional layout as, for example, from a field experiment. This can be useful to study the spatial pattern of the residuals, for example to see if there are any systematic trends in fertility.
The locations of the plots are defined by the
X parameters, specifying variates or factors containing their y- and x-coordinates respectively. By default the residuals are taken from the most recent
REML analysis. However, you can take the residuals from some other analysis, by specifying its save structure using the
RMETHOD option controls which random terms are used to calculate the residuals:
||all the random effects (default),|
||only the final random term,|
||all except any random spline terms,|
||standardized residuals using all the random effects, and|
||standardized residuals using only the final random term.|
Usually, the plots in the experiment will all have different coordinates. However, if there are several plots with the same coordinates, mean residuals are calculated for each location. Thus for example, if you wanted only to look at the block and whole-plot residuals in a split-plot design, you could form the residuals from all the random terms, and then set identical coordinates for the (sub-) plots within each whole plot.
VDFIELDRESIDUALS provides two types of graph, selected by the settings of the
PLOT option as follows:
||generates a contour plot if the plots are on a regular grid, or a line graph if they are arranged in a single line, and|
||produces a shade plot for plots that are on a regular grid.|
PLOT=contour. You can also set option
PRINT=table to print the residuals in a table, whose structure corresponds to the field layout,
GRAPHICS option determines the type of graphics that is used, with settings
highresolution (the default) and
lineprinter. No graphs can be produced if the plots are in an irregular 2-dimensional arrangement. High-resolution contour plots require more than three rows and columns, and line-printer contour plots require more than four rows and columns.
The way in which the lines are drawn in high-resolution contour plots is defined by the properties of the pen specified by the
PENCONTOUR option, while the pen specified by the
PENFILL parameter defines how to shade the areas between the contours. Their defaults are 1 and 3 respectively. Similarly, the pen or pens specified by the
PENSHADE option control the colouring of the shade plot; the default is to use pen 3. For more information see the
MARGIN option, with settings
no (default) and
yes, determines whether or not marginal means are included with the printed tables. The
DECIMALS parameters can be used to specify the formats of the printed tables (as in the
TITLE parameter can supply a title. If this is not set, a default title is formed.
YORIENTATION option controls the orientation of the y-coordinates in the plots and tables. By default this is
normal, so that they run upwards from the bottom of the page (as in a map).
If either of
Y is restricted, only the unrestricted field plots are displayed.
Commands for: REML analysis of linear mixed models.
CAPTION 'VDFIELDRESIDUALS example',\ 'Slate Hall Farm (Guide to REML in Genstat, Section 1.8).';\ STYLE=meta,plain SPLOAD '%gendir%/data/slatehall.gsh' VCOMPONENTS [FIXED=variety] replicates/(rows*columns) REML yield VDFIELDRESIDUALS [PRINT=table; PLOT=contour,shade] Y=fieldrow; X=fieldcolumn