R/Canola.R

#' Yields of Canola
#'
#' The Canola dataset contains data from an experiment to 
#' study the effects of nitrogen and sulphur on the yield
#'  of canola, using a randomzed-block design.
#' 
#' @format 
#' \describe{A data frame with 36 observations on the 
#' following five variables:
#'   \item{blcok}{a factor specifying the blocks in the experiment.}
#'   \item{plot}{a factor numbering the plots within each block.}
#'   \item{N}{a factor specifying the amount of nitrogen 
#'   applied to each plot.}
#'   \item{S}{a factor specifying the amount of sulphur 
#'   applied to each plot.}
#'   \item{yield}{a numerical vector recording the 
#'   yield from each plot.}
#' }
#' @source 
#' VSN International (2014). Genstat for Windows 17th Edition. VSN International, 
#' Hemel Hempstead, UK. Web page: Genstat.co.uk.
#' 
#' \url{www.vsni.co.uk/}
#' @examples 
#' # The aov code
#' data(Canova,package="vsnc")
#' moda <- aov(yield ~ N*S + Error(block),data=Canola)
#' summary(moda)
#' 
#' # The msanova code
#' # library(msanova)
#' # data(Canova,package="vsnc")
#' # modb <- msanova(yield ~ N*S,blockstructure =~ block,data = Canola )
#' # summary(modb)
#' # plot(modb)
#' 
#' # The asreml code
#' data(Canova,package="vsnc")
#' library(asreml)
#' modc <- asreml(yield ~ N*S, random = ~ block, data=Canola)
#' wald(modc)
#' plot(modc) 
"Canola"
VSNC/vsnc documentation built on May 28, 2019, 3:20 p.m.