LVARMODEL procedure

Analyses a field trial using the Linear Variance Neighbour model (D.B. Baird).


Options

PRINT = strings
Controls printed output (data, effects, sed, residuals, variances); default effe, sed, vari

METHOD = string
Indicates which version of the LV model to use (full, reduced); default full

LAMBDA = scalar
Number between 0 and 1 which defines the value for the variance parameter λ (if METHOD=full and LAMBDA=0, the value is estimated by REML); default 0

VARMETHOD = string
Specifies which estimator of residual variance to use to calculate the sed's of treatment effects (RMS2, GLS) default RMS2

TOLERANCE = scalar
Defines the precision to which the variance parameter λ should be estimated; default 0.01


Parameters

Y = variates
Y-values (usually plot yields) row by row

TREATMENTS = factors
Plot treatments for each y-variate

NROWS = scalars
Number of rows in the field layout; default 1

EFFECTS = tables
To save the estimated treatment effects from each analysis

SED = matrices or symmetric matrices
To save the estimated standard errors of differences between treatments

WNOISE = variates
To save the estimated white noise component

TREND = variates
To save the estimated trend component

COMPONENTS = variates
To save the estimated variance components: the tuning parameter λ, and either the variance of the random walk innovations (λ<0.9) or the white noise variance (λ≥0.9)


Description

LVARMODEL analyses a field trial, whose plots are in rows of equal length, using the Linear Variance (LV) Neighbour analysis (Williams 1986). The LV model is equivalent to the extended First Difference model of Besag & Kempton (1986). The model allows for local trends within a row, and the analysis attempts to remove these trends by using a form of smoothing. In the full LV model, the degree of smoothing is estimated from the data; alternatively the reduced model, corresponding to the ordinary First Difference (FD) model of Besag & Kempton (1986), applies a full linear detrending to the data.

   The LV model specifies the data as the sum of three components: the treatment effects, a trend component which is a random walk process, and a residual white noise component. This procedure cannot be used to fit the full Linear Variance plus Incomplete Block model of Williams (1986), which has an additional random component for incomplete blocks; however, blocks may be fitted as a fixed effect by regarding each block as a separate row and setting up the data accordingly.

   The variable to be analysed (normally a plot yield) is specified in a variate, using the Y parameter, with the values in row order (row by row). The factor defining the corresponding plot treatments is specified using the TREATMENTS parameter, and the number of rows in the trial is specified with the NROWS parameter. The procedure can handle missing values in the y-variate but not in the TREATMENTS factor.

   The other parameters allow information to be saved from the analysis: EFFECTS for the table of estimated treatment effects; SED for the standard errors of differences between treatments effects (in either a matrix or a symmetric matrix); WNOISE for the estimated white noise (in a variate); TREND for trend component (in a variate); and COMPONENTS for the two variance parameters. The first variance component is the parameter λ. For λ<0.9 the second component is the variance of the innovations in the random walk. If λ≥0.9 the second component saved is the variance of the white noise component, as the random walk component disappears in the limit as λ tends to one.

   Printed output is controlled by the PRINT option with the following settings: data - y-values and treatments in a tabular form; effects estimated treatment effects; sed standard errors of differences of effects; variance estimates of λ and the white noise variance; and residuals trend and white noise components.

   The METHOD option controls the form of LV model to be fitted. By default setting of full causes the full LV model to be fitted, with the variance parameters of the model estimated by Residual Maximum Likelihood (REML) (Gleeson & Cullis 1987). The variance parameters used, λ and κ, are those given by Baird and Mead (1991). The parameter λ is known as the tuning parameter, as it controls the degree of smoothing used in eliminating trend effects from the data. It is related to the parameter α of Besag & Kempton (1986), by the relationship

λ = α / (1 + α)

Alternatively, specifying METHOD=reduced fits the reduced form of the LV model, that is the FD model. This is equivalent to putting λ = 0.

   The option LAMBDA allows the value of the tuning parameter to be set at a fixed value, which must lie between 0 and 1. By default LAMBDA=0, which for METHOD=full causes the value to be estimated as described above.

   The option VARMETHOD controls the estimator used for the estimating the variance of the residual white noise component. There are two possibilities: the normal generalized least-squares estimator GLS, and an estimator based on the second differences of the errors RMS2 (Besag & Kempton 1986). The simulation study of Baird & Mead (1991) showed the standard errors of treatment effects based on RMS2 to be approximately valid under randomization for a wide range of error models. When the estimated value of λ was not close to zero, the standard errors based on GLS were found to be approximately unbiased and more efficient than those based on RMS2 for the LV model. However the standard errors based on GLS could be seriously biased in some situations for the FD model or when λ was close to zero. Thus the default for VARMETHOD is RMS2.

   Finally, the TOLERANCE option specifies the precision to which λ should be estimated.


Options: PRINT, METHOD, LAMBDA, VARMETHOD, TOLERANCE.

Parameters: Y, TREATMENTS, NROWS, EFFECTS, SED, WNOISE, TREND, COMPONENTS.


Method

The model is fitted in a similar manner to that outlined in Besag & Kempton (1986), but the variance components have the parameterization used by Baird & Mead (1991) and are fitted by residual maximum likelihood (Gleeson & Cullis 1987) rather than maximum likelihood; also see Baird (1987). The optimization of the likelihood is done by golden section search on the profile likelihood for λ. Residuals are constructed by creating the smoothing matrix S that corresponds to the LV model fitted (Green et al. 1985).

   The procedure uses a large amount of data space and computer time when the tuning parameter is estimated by REML. The speed is proportional to the number of rows multiplied by the square of the numbers of columns.


Action with RESTRICT

The procedure ignores any restrictions, for example on Y and TREATMENTS.


References

Baird, D.B. (1987). A Genstat 5 procedure for a First Difference analysis. Genstat Newsletter, 19, 40-47.

Baird, D.B. & Mead, R. (1991). The empirical efficiency and validity of two neighbour models. Biometrics, 47, 1473-1487.

Besag, J.E. & Kempton R.A. (1986). Statistical analysis of field experiments using neighbouring plots. Biometrics, 42, 231-251.

Gleeson, A.C. & Cullis, B.R. (1987). Residual maximum likelihood estimation of a neighbour model for field experiments. Biometrics, 43, 277-288.

Green, P.J., Jennison, C. & Seheult. A.H. (1985). Analysis of field experiments by least squares smoothing. Journal of the Royal Statistical Society, Series B, 47, 299-315.

Williams, E.R. (1986). A neighbour model for field experiments. Biometrika, 73, 279-287.