Learn R Programming

agridat (version 1.5)

talbot.potato: Potato yields and trait scores at 12 UK locations

Description

Yield and 14 trait scores for each of 9 potato varieties at 12 locations in UK.

Usage

data(talbot.potato)

Arguments

format

A list of two matrices, yield and char. See details below.

source

Mike Talbot and A V Wheelwright, 1989, The analysis of genotype x analysis interactions by partial least squares regression. Biuletyn Oceny Odmian, 21/22, 19--25. Also: http://www.bioss.ac.uk/smart/unix/mplsgxe/example/t2.g Used with permission of Mike Talbot.

Details

The yield matrix contains mean tuber yields (t/ha) of 9 varieties of potato at 12 centers in the United Kingdom over five years 1983-1987. The following abbreviations are used for the centers. ll{ BU Bush CA Cambridge CB Conon Bridge CC Crossacreevy CP Cockle Park CR Craibstone GR Greenmount HA Harper Adams MO Morley RO Rosemaund SB Sutton Bonnington TE Terrington } The char matrix contains the scores of 14 traits on each of the 9 varities.

References

http://www.bioss.ac.uk/smart/unix/mplsgxe/slides/

Examples

Run this code
require(pls)

char <- talbot.potato$char
yield <- talbot.potato$yield

# Transform columns to zero mean and unit variance
char <- scale(char)
yield <- scale(yield)

m1 <- plsr(yield ~ char, ncomp=3)
summary(m1)

# Loadings factor 1
lo <- loadings(m1)[,1,drop=FALSE]
round(-1*lo[order(-1*lo),1,drop=FALSE],2)

Run the code above in your browser using DataLab