| Title: | Diallel Analysis, Heterosis and Related Mating Designs |
|---|---|
| Description: | Analysis of diallel crosses and related mating designs in plant breeding, from the plot data of randomized complete block experiments: Griffing's four methods and two models (Griffing, 1956 <doi:10.1071/BI9560463>), from plot data, from a published table of means or over several environments, with gca by environment and sca by environment interactions and a split of reciprocal effects into maternal and non-maternal parts (Cockerham and Weir, 1977); Hayman's analysis with the Wr-Vr graph and the components of variation (Hayman, 1954 <doi:10.1093/genetics/39.6.789>); mid-parent, better-parent and standard heterosis with t tests; Gardner and Eberhart's (1966) Analyses II and III; the partial diallel (Kempthorne and Curnow, 1961 <doi:10.2307/2527989>); line by tester analysis with proportional contributions; and the North Carolina designs I, II and III (Comstock and Robinson, 1948). Missing plots are handled by least-squares means. Results include analyses of variance, effects with standard errors, variance components and genetic ratios, plots of the effects and a biplot of the crosses, tables for papers in Word, LaTeX, HTML or Markdown, simulation of diallel data and the power of the tests for planning the number of replicates, and an interactive 'shiny' application. |
| Authors: | Muhammad Yaseen [aut, cre, cph] (ORCID: <https://orcid.org/0000-0002-5923-1714>), Kent Eskridge [aut, ctb], Pedro Barbosa [aut, ctb], Yuhang Guo [aut, ctb] |
| Maintainer: | Muhammad Yaseen <[email protected]> |
| License: | GPL-2 | GPL-3 |
| Version: | 1.0.0 |
| Built: | 2026-11-07 07:30:44 UTC |
| Source: | https://github.com/myaseen208/diallelanalysisr |
da_export() writes the main tables of a result of this package (the analysis of variance, the components,
the effects with their standard errors and tests, and so on) to a Word document, a LaTeX file of booktabs
tables, an HTML page, a Markdown file or CSV files, with numbers rounded for print.
da_export( x, file, format = c("docx", "latex", "html", "markdown", "csv"), tables = NULL, digits = 3, title = NULL ) da_tables(x, digits = 3)da_export( x, file, format = c("docx", "latex", "html", "markdown", "csv"), tables = NULL, digits = 3, title = NULL ) da_tables(x, digits = 3)
x |
a result of |
file |
path of the file to write (its extension does not choose the format; |
format |
|
tables |
names of the tables to write (default all; see |
digits |
decimals of the printed numbers (default 3). |
title |
title written above the tables (default: the label of the analysis). |
da_tables() returns the tables that da_export() writes, as a named list of data frames, so that they
can be edited first. Numbers are rounded to digits decimals; p-values are printed with three decimals and as
<0.001 below 0.001. Word documents need the packages officer and flextable; the other formats
need nothing beyond base R. For LaTeX, the file holds one table environment per table and needs
\usepackage{booktabs} in the preamble. For CSV, each table goes to its own file, named after file
with the table name appended.
da_export(): the path(s) of the file(s) written, invisibly. da_tables(): a named list of data
frames.
Muhammad Yaseen ([email protected])
Other DiallelAnalysisR utilities:
da_notation(),
da_reference(),
da_save(),
da_theme()
fit <- Griffing( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData1 , Method = 1 , Model = 1 , Reciprocal = c("combined", "split")[1] ) names(da_tables(x = fit, digits = 3)) f <- tempfile(fileext = ".tex") da_export( x = fit , file = f , format = c("docx", "latex", "html", "markdown", "csv")[2] , tables = NULL , digits = 3 , title = NULL ) cat(readLines(f)[1:12], sep = "\n")fit <- Griffing( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData1 , Method = 1 , Model = 1 , Reciprocal = c("combined", "split")[1] ) names(da_tables(x = fit, digits = 3)) f <- tempfile(fileext = ".tex") da_export( x = fit , file = f , format = c("docx", "latex", "html", "markdown", "csv")[2] , tables = NULL , digits = 3 , title = NULL ) cat(readLines(f)[1:12], sep = "\n")
The symbols used in the help pages and vignettes of DiallelAnalysisR, with their meaning and the argument or result
component that holds them. The notation follows one rule throughout: scalars are upper-case letters in normal
face (, ), indices lower-case italic (), vectors lower-case bold
(, ) and matrices upper-case bold (,
).
da_notation(format = c("table", "path", "tex"))da_notation(format = c("table", "path", "tex"))
format |
|
See format.
Muhammad Yaseen ([email protected])
Other DiallelAnalysisR utilities:
da_export(),
da_reference(),
da_save(),
da_theme()
da_notation( format = c("table", "path", "tex")[1] )da_notation( format = c("table", "path", "tex")[1] )
Reads inst/extdata/reference.csv: one row per published number, with its source, the R call
that recomputes it with this package (call), the expression that extracts the number from the result
(extract, in terms of x), the printed value and the digits to compare. The same file drives the test
of published values and the vignette that reproduces the published examples. Each distinct call is evaluated once.
da_reference(source = NULL, evaluate = FALSE, level = 1)da_reference(source = NULL, evaluate = FALSE, level = 1)
source |
optional regular expression; keep rows whose |
evaluate |
logical; evaluate the rows and add columns |
level |
largest |
A data.table with columns id, source, quantity, call, extract,
value, digits, level, note (and computed, agrees).
Muhammad Yaseen ([email protected])
Other DiallelAnalysisR utilities:
da_export(),
da_notation(),
da_save(),
da_theme()
ref <- da_reference( source = NULL , evaluate = FALSE , level = 1 ) ref da_reference( source = "." , evaluate = TRUE , level = 1 )ref <- da_reference( source = NULL , evaluate = FALSE , level = 1 ) ref da_reference( source = "." , evaluate = TRUE , level = 1 )
A wrapper of ggsave with the defaults of the package: a vector PDF through
cairo_pdf (embedded fonts, correct glyphs), A4 landscape (11.69 x 8.27 inches) and 600
dpi for raster formats. The device follows the file extension for other formats (.png, .svg,
.tiff, ...).
da_save( plot = ggplot2::last_plot(), filename, path = NULL, width = 11.69, height = 8.27, units = c("in", "cm", "mm"), dpi = 600, scale = 1, device = NULL, limitsize = TRUE, ... )da_save( plot = ggplot2::last_plot(), filename, path = NULL, width = 11.69, height = 8.27, units = c("in", "cm", "mm"), dpi = 600, scale = 1, device = NULL, limitsize = TRUE, ... )
plot |
a |
filename |
file name; its extension chooses the format. |
path |
directory to save in (default |
width, height
|
size (default 11.69 x 8.27, A4 landscape, in |
units |
|
dpi |
resolution for raster formats (default 600). |
scale |
multiplicative scaling factor (default 1). |
device |
|
limitsize |
logical; refuse images larger than 50 x 50 inches (default |
... |
passed to |
The file name, invisibly.
Muhammad Yaseen ([email protected])
Other DiallelAnalysisR utilities:
da_export(),
da_notation(),
da_reference(),
da_theme()
library(ggplot2) p <- ggplot(data = data.frame(x = 1:10, y = (1:10)^2), mapping = aes(x = x, y = y)) + geom_line() + da_theme( base_size = 11 , base_family = "serif" , ticks_inward = TRUE , legend_position = "bottom" ) f <- tempfile(fileext = ".pdf") da_save( plot = p , filename = f , path = NULL , width = 11.69 , height = 8.27 , units = c("in", "cm", "mm")[1] , dpi = 600 , scale = 1 , device = NULL , limitsize = TRUE ) da_save( plot = p , filename = basename(f) , path = tempdir() , width = 11.69 , height = 8.27 , units = c("in", "cm", "mm")[1] , dpi = 600 , scale = 1 , device = grDevices::cairo_pdf , limitsize = TRUE ) da_save( plot = p , filename = tempfile(fileext = ".png") , path = NULL , width = 6 , height = 4 , units = c("in", "cm", "mm")[1] , dpi = 300 , scale = 1 , device = NULL , limitsize = TRUE )library(ggplot2) p <- ggplot(data = data.frame(x = 1:10, y = (1:10)^2), mapping = aes(x = x, y = y)) + geom_line() + da_theme( base_size = 11 , base_family = "serif" , ticks_inward = TRUE , legend_position = "bottom" ) f <- tempfile(fileext = ".pdf") da_save( plot = p , filename = f , path = NULL , width = 11.69 , height = 8.27 , units = c("in", "cm", "mm")[1] , dpi = 600 , scale = 1 , device = NULL , limitsize = TRUE ) da_save( plot = p , filename = basename(f) , path = tempdir() , width = 11.69 , height = 8.27 , units = c("in", "cm", "mm")[1] , dpi = 600 , scale = 1 , device = grDevices::cairo_pdf , limitsize = TRUE ) da_save( plot = p , filename = tempfile(fileext = ".png") , path = NULL , width = 6 , height = 4 , units = c("in", "cm", "mm")[1] , dpi = 300 , scale = 1 , device = NULL , limitsize = TRUE )
The theme used by every plot() method of DiallelAnalysisR (identical in all packages of the
author): theme_classic with a serif font, black axis lines, ticks pointing inwards and no
grid, close to the look of TikZ/pgfplots figures in LaTeX documents. The plot() methods also use
scales::pretty_breaks(n = 10) on every continuous axis. Save figures with da_save.
da_theme( base_size = 11, base_family = "serif", ticks_inward = TRUE, legend_position = "bottom" )da_theme( base_size = 11, base_family = "serif", ticks_inward = TRUE, legend_position = "bottom" )
base_size |
base font size in points (default 11). |
base_family |
font family (default |
ticks_inward |
logical; ticks point into the panel, as in pgfplots (default |
legend_position |
position of the legend (default |
A ggplot2 theme.
Muhammad Yaseen ([email protected])
Other DiallelAnalysisR utilities:
da_export(),
da_notation(),
da_reference(),
da_save()
library(ggplot2) p <- ggplot(data = data.frame(x = 1:20, y = cumsum(sin(1:20))), mapping = aes(x = x, y = y)) + geom_line() p + da_theme( base_size = 11 , base_family = "serif" , ticks_inward = TRUE , legend_position = "bottom" ) p + da_theme( base_size = 12 , base_family = "serif" , ticks_inward = FALSE , legend_position = "right" ) + scale_x_continuous(breaks = scales::pretty_breaks(n = 10))library(ggplot2) p <- ggplot(data = data.frame(x = 1:20, y = cumsum(sin(1:20))), mapping = aes(x = x, y = y)) + geom_line() p + da_theme( base_size = 11 , base_family = "serif" , ticks_inward = TRUE , legend_position = "bottom" ) p + da_theme( base_size = 12 , base_family = "serif" , ticks_inward = FALSE , legend_position = "right" ) + scale_x_continuous(breaks = scales::pretty_breaks(n = 10))
The analysis functions of DiallelAnalysisR return the named list they have always returned, now with the class
c("da_<analysis>", "da_result", "list"). Components are read as before (x$ANOVA,
x[["Means"]]); the methods below print, summarise and plot the result and turn any component into a
data.table.
## S3 method for class 'da_result' print(x, digits = 4L, ...) ## S3 method for class 'da_result' summary(object, ...) ## S3 method for class 'summary.da_result' print(x, ...) ## S3 method for class 'da_result' format(x, ...) ## S3 method for class 'da_result' as.data.table(x, keep.rownames = FALSE, ..., component = 1L) ## S3 method for class 'da_result' as.data.frame(x, row.names = NULL, optional = FALSE, ..., component = 1L) ## S3 method for class 'da_result' plot(x, ...)## S3 method for class 'da_result' print(x, digits = 4L, ...) ## S3 method for class 'da_result' summary(object, ...) ## S3 method for class 'summary.da_result' print(x, ...) ## S3 method for class 'da_result' format(x, ...) ## S3 method for class 'da_result' as.data.table(x, keep.rownames = FALSE, ..., component = 1L) ## S3 method for class 'da_result' as.data.frame(x, row.names = NULL, optional = FALSE, ..., component = 1L) ## S3 method for class 'da_result' plot(x, ...)
x, object
|
a DiallelAnalysisR result. |
digits |
significant digits of printed numbers (default 4). |
... |
passed on (to |
keep.rownames, row.names, optional
|
as in |
component |
name or number of the component to convert (default: the first one). |
print() returns x invisibly; summary() an object of class
summary.da_result; format() a character string; as.data.table() and
as.data.frame() the chosen component as a table; plot() a ggplot object.
Muhammad Yaseen ([email protected])
The results of Griffing, Hayman and PartialDiallel are lists with a
class, so the usual model functions of R work on them: print() shows the main tables, summary() adds
the tests of every effect, anova() returns the analysis of variance, coef() the estimates,
vcov() and confint() their covariance matrix and confidence intervals, fitted() and
residuals() the plot-level fitted values and residuals of the block analysis, predict() the
predicted means of crosses (Griffing's fixed model), and plot() or autoplot() the figures.
## S3 method for class 'summary.da_griffing' print(x, digits = 4L, ...) ## S3 method for class 'summary.da_hayman' print(x, digits = 4L, ...) ## S3 method for class 'summary.da_partial' print(x, digits = 4L, ...) ## S3 method for class 'da_result' anova(object, ...) ## S3 method for class 'da_griffing' coef(object, ...) ## S3 method for class 'da_hayman' coef(object, ...) ## S3 method for class 'da_partial' coef(object, ...) ## S3 method for class 'da_griffing' vcov(object, ...) ## S3 method for class 'da_partial' vcov(object, ...) ## S3 method for class 'da_griffing' confint(object, parm = NULL, level = 0.95, ...) ## S3 method for class 'da_partial' confint(object, parm = NULL, level = 0.95, ...) ## S3 method for class 'da_result' fitted(object, ...) ## S3 method for class 'da_result' residuals(object, ...) ## S3 method for class 'da_result' nobs(object, ...) ## S3 method for class 'da_result' df.residual(object, ...) ## S3 method for class 'da_griffing' predict(object, newdata = NULL, type = c("gca", "full"), ...) ## S3 method for class 'da_result' autoplot(object, ...)## S3 method for class 'summary.da_griffing' print(x, digits = 4L, ...) ## S3 method for class 'summary.da_hayman' print(x, digits = 4L, ...) ## S3 method for class 'summary.da_partial' print(x, digits = 4L, ...) ## S3 method for class 'da_result' anova(object, ...) ## S3 method for class 'da_griffing' coef(object, ...) ## S3 method for class 'da_hayman' coef(object, ...) ## S3 method for class 'da_partial' coef(object, ...) ## S3 method for class 'da_griffing' vcov(object, ...) ## S3 method for class 'da_partial' vcov(object, ...) ## S3 method for class 'da_griffing' confint(object, parm = NULL, level = 0.95, ...) ## S3 method for class 'da_partial' confint(object, parm = NULL, level = 0.95, ...) ## S3 method for class 'da_result' fitted(object, ...) ## S3 method for class 'da_result' residuals(object, ...) ## S3 method for class 'da_result' nobs(object, ...) ## S3 method for class 'da_result' df.residual(object, ...) ## S3 method for class 'da_griffing' predict(object, newdata = NULL, type = c("gca", "full"), ...) ## S3 method for class 'da_result' autoplot(object, ...)
x, object
|
a result of |
digits |
significant digits of printed numbers (default 4). |
... |
passed on (to |
parm |
effects to include (names; default all). |
level |
confidence level (default 0.95). |
newdata |
data frame with columns |
type |
|
Standard errors and tests use the error variance of a cell mean on the error degrees of freedom : , two-sided p-values from the distribution on degrees of freedom, and
confidence intervals . In Griffing's fixed model the gca effects have and , where and are the variance
coefficients of and of (see Griffing). In
the partial diallel ,
and
. Hayman's
components are tested on degrees of freedom.
Summary. summary(object, top = 5) lists the top crosses with the largest sca effects
(Griffing's Model 1 and the partial diallel); top is passed through ....
Prediction (Griffing, Model 1): the mean of cross is predicted by from general combining ability alone (type = "gca", the prediction
for crosses not grown or not yet tested) or by (type = "full", which reproduces the observed means).
print() returns x invisibly. summary(): an object of class
summary.da_griffing, summary.da_hayman or summary.da_partial (a list of tables, each a
data.table or data.frame) with a print method. anova(): the analysis of variance (class
anova). coef(): a named numeric vector (Griffing Model 1: gca effects g_<parent>, sca effects
s_<i>:<j>, reciprocal effects r_<i>:<j>; Griffing Model 2: variance components; Hayman: the
components of variation; partial diallel: gca effects gI_<parent>, gII_<parent>).
vcov(): covariance matrix of the gca effects. confint(): a matrix with columns for the lower and
upper limits. fitted(), residuals(): numeric vectors, one value per plot. nobs(): number of
plots; df.residual(): error degrees of freedom. predict(): a data.table with
Cross1, Cross2 and predicted. autoplot(): a ggplot object.
Muhammad Yaseen ([email protected])
Griffing, B. (1956). Concept of general and specific combining ability in relation to diallel crossing systems. Australian Journal of Biological Sciences, 9(4), 463–493. doi:10.1071/BI9560463
Hayman, B. I. (1954). The theory and analysis of diallel crosses. Genetics, 39(6), 789–809. doi:10.1093/genetics/39.6.789
Griffing, Hayman, PartialDiallel, da-methods
#------------------------------------------------------------- ## The model functions on Griffing's fixed model #------------------------------------------------------------- fit <- Griffing( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData1 , Method = 1 , Model = 1 , Reciprocal = c("combined", "split")[1] ) fit summary(object = fit, top = 5) anova(fit) coef(fit)[1:8] vcov(fit) confint(object = fit, parm = NULL, level = 0.95) head(fitted(fit)) head(residuals(fit)) nobs(fit) df.residual(fit) predict( object = fit , newdata = data.frame(Cross1 = c(3, 7), Cross2 = c(7, 8)) , type = c("gca", "full")[1] ) plot(x = fit, which = c("gca", "sca", "biplot", "residuals", "qq")[4]) #------------------------------------------------------------- ## Hayman and the partial diallel #------------------------------------------------------------- h <- Hayman( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = HaymanData ) summary(object = h, top = 5) coef(h) p <- PartialDiallel( y = y , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = PartialDiallelData ) summary(object = p, top = 5) confint(object = p, parm = NULL, level = 0.95)#------------------------------------------------------------- ## The model functions on Griffing's fixed model #------------------------------------------------------------- fit <- Griffing( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData1 , Method = 1 , Model = 1 , Reciprocal = c("combined", "split")[1] ) fit summary(object = fit, top = 5) anova(fit) coef(fit)[1:8] vcov(fit) confint(object = fit, parm = NULL, level = 0.95) head(fitted(fit)) head(residuals(fit)) nobs(fit) df.residual(fit) predict( object = fit , newdata = data.frame(Cross1 = c(3, 7), Cross2 = c(7, 8)) , type = c("gca", "full")[1] ) plot(x = fit, which = c("gca", "sca", "biplot", "residuals", "qq")[4]) #------------------------------------------------------------- ## Hayman and the partial diallel #------------------------------------------------------------- h <- Hayman( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = HaymanData ) summary(object = h, top = 5) coef(h) p <- PartialDiallel( y = y , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = PartialDiallelData ) summary(object = p, top = 5) confint(object = p, parm = NULL, level = 0.95)
DiallelApp() starts a Shiny application for the analyses of the package: choose an example data set or
upload a CSV file (one row per plot), pick the analysis and its columns, and get the printed results, the main
tables, the plots, the tables for a paper (Word, LaTeX, HTML or Markdown, through da_export) and the
R code that repeats the analysis.
DiallelApp(launch.browser = interactive(), ...)DiallelApp(launch.browser = interactive(), ...)
launch.browser |
passed to |
... |
further arguments to |
The application needs the packages shiny and bslib (and officer and flextable for Word
tables). It covers Griffing, GriffingEnv, Heterosis, Hayman,
GardnerEberhart, PartialDiallel, LineTester and NCDesign.
Called for its side effect; returns the value of shiny::runApp() when the application is closed.
Muhammad Yaseen ([email protected])
if (interactive()) { DiallelApp( launch.browser = TRUE ) }if (interactive()) { DiallelApp( launch.browser = TRUE ) }
DiallelPower() estimates by simulation the power of Griffing's tests of gca, sca and reciprocal
effects for numbers of replicates, so that the size of a diallel experiment can be planned.
DiallelPower( Parents, Method, Rep, Model = 1, gca, sca, rec = 0, Error, nsim = 500, alpha = 0.05, seed = NULL ) ## S3 method for class 'da_power' plot(x, ...)DiallelPower( Parents, Method, Rep, Model = 1, gca, sca, rec = 0, Error, nsim = 500, alpha = 0.05, seed = NULL ) ## S3 method for class 'da_power' plot(x, ...)
Parents |
number of parents |
Method |
Griffing's method, |
Rep |
vector of numbers of replicates to compare. |
Model |
|
gca, sca, rec
|
standard deviations of the gca, sca and reciprocal effects. |
Error |
standard deviation of the plot errors |
nsim |
number of simulated data sets for each number of replicates (default |
alpha |
level of the tests (default |
seed |
seed of the random numbers, or |
x |
a |
... |
unused. |
For every number of replicates in Rep, nsim data sets are drawn with DiallelSim and
analysed with Griffing's closed forms; the power is the share of data sets whose test is significant at level
alpha, with its Monte Carlo standard error .
The tests are those of Model: in Model 1 every line against the error, in Model 2 gca against sca. The
block effects do not change the tests and are left out.
A data.table of class c("da_power", ...): columns Rep, Source (gca, sca,
reciprocals), Power and SE; plot() draws the power curves.
Muhammad Yaseen ([email protected])
Other DiallelAnalysisR planning:
DiallelSim()
pw <- DiallelPower( Parents = 6 , Method = 2 , Rep = 2:4 , Model = 1 , gca = 1 , sca = 1.5 , rec = 0 , Error = 4 , nsim = 100 , alpha = 0.05 , seed = 1 ) pw plot(pw)pw <- DiallelPower( Parents = 6 , Method = 2 , Rep = 2:4 , Model = 1 , gca = 1 , sca = 1.5 , rec = 0 , Error = 4 , nsim = 100 , alpha = 0.05 , seed = 1 ) pw plot(pw)
DiallelSim() simulates plot data of a diallel in randomized complete blocks, in one or several
environments, from Griffing's model with random effects. It serves teaching (data with known effects) and the
planning of experiments (see DiallelPower).
DiallelSim( Parents, Method, Rep, Env = 1, Mean = 0, gca, sca, rec = 0, gcaEnv = 0, scaEnv = 0, EnvSD = 0, Block = 0, Error, seed = NULL )DiallelSim( Parents, Method, Rep, Env = 1, Mean = 0, gca, sca, rec = 0, gcaEnv = 0, scaEnv = 0, EnvSD = 0, Block = 0, Error, seed = NULL )
Parents |
number of parents |
Method |
Griffing's method, |
Rep |
number of replicates (blocks) per environment. |
Env |
number of environments (default |
Mean |
overall mean |
gca, sca, rec
|
standard deviations of the gca, sca and reciprocal effects. |
gcaEnv, scaEnv
|
standard deviations of the gca |
EnvSD |
standard deviation of the environment effects (default |
Block |
standard deviation of the block effects (default |
Error |
standard deviation of the plot errors |
seed |
seed of the random numbers, or |
The response of the plot of cross in block of environment is
with independent normal effects of standard deviations gca, sca (), rec (, Methods 1 and 3), gcaEnv, scaEnv,
Block and Error; environment effects have standard deviation EnvSD. The
gca, environment and block effects are centred to sum to zero and the sca effects to zero row and column sums over
the full table (Griffing's constraints of Methods 1 and 2). The true effects are returned as
the attribute "truth".
A data.frame with columns Cross1, Cross2, Rep, y (and Env),
with the attribute "truth": a list with gca (vector), sca and rec (matrices) and
Mean.
Muhammad Yaseen ([email protected])
DiallelPower, Griffing, GriffingEnv
Other DiallelAnalysisR planning:
DiallelPower()
d <- DiallelSim( Parents = 6 , Method = 1 , Rep = 3 , Env = 1 , Mean = 100 , gca = 5 , sca = 3 , rec = 1 , gcaEnv = 0 , scaEnv = 0 , EnvSD = 0 , Block = 2 , Error = 4 , seed = 123 ) head(d) attr(x = d, which = "truth")$gca fit <- Griffing( y = y , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = d , Method = 1 , Model = 1 , Reciprocal = c("combined", "split")[1] ) cbind(true = attr(x = d, which = "truth")$gca, estimated = fit$GCA)d <- DiallelSim( Parents = 6 , Method = 1 , Rep = 3 , Env = 1 , Mean = 100 , gca = 5 , sca = 3 , rec = 1 , gcaEnv = 0 , scaEnv = 0 , EnvSD = 0 , Block = 2 , Error = 4 , seed = 123 ) head(d) attr(x = d, which = "truth")$gca fit <- Griffing( y = y , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = d , Method = 1 , Model = 1 , Reciprocal = c("combined", "split")[1] ) cbind(true = attr(x = d, which = "truth")$gca, estimated = fit$GCA)
GardnerEberhart() analyses parents and one set of crosses (Griffing's Method 2 design) with
the genetic models of Gardner and Eberhart (1966): Analysis II splits the entries into variety effects and
heterosis (average, variety and specific heterosis); Analysis III into variety effects, average heterosis and the
general and specific combining ability of the crosses.
GardnerEberhart(y, Rep, Cross1, Cross2, data, Analysis = 2, Model = 1)GardnerEberhart(y, Rep, Cross1, Cross2, data, Analysis = 2, Model = 1)
y |
response: a column of |
Rep |
replicate (block): a column of |
Cross1 |
female parent of each plot: a column of |
Cross2 |
male parent of each plot: a column of |
data |
a data frame (or |
Analysis |
|
Model |
|
Let be the mean of parent (variety) and that of the
cross , , with parents.
Analysis II.
with and . The entries' sum of squares ( degrees of freedom) is split sequentially
into varieties () and heterosis, the latter into average heterosis (1), variety heterosis
() and specific heterosis ().
Analysis III.
with : varieties (), varieties against crosses (average
heterosis, 1), general combining ability of the crosses () and specific combining ability
(); the last two are Griffing's Method 4 analysis of the crosses.
The sums of squares are on the scale of entry means; the error is on the error degrees of
freedom of the block analysis (least-squares entry means and the harmonic mean of the plot numbers when plots are
missing). With Model = 1 every line is tested against the error; with Model = 2 the variety and
heterosis lines (Analysis II) or the gca line (Analysis III) are tested against the specific line. Standard errors
of the effects come from the least-squares fit, .
An object of class c("da_gardner", "da_result", "list"):
Meansmatrix of entry means (parents on the diagonal, crosses above it).
ANOVAanalysis of variance of the entries (class anova).
Effectsdata.table of the effects of each parent with standard errors: Analysis II
v and h; Analysis III v and g.
Averagedata frame: and with standard errors.
Specificsymmetric matrix of the specific effects .
RCBDanalysis of variance of the plot data.
Methods: print(), summary(), plot() (which = c("effects", "specific", "residuals",
"qq")), data.table::as.data.table(x, component =), da_export.
Muhammad Yaseen ([email protected])
Gardner, C. O. and Eberhart, S. A. (1966). Analysis and interpretation of the variety cross diallel and related populations. Biometrics, 22(3), 439–452. doi:10.2307/2528181
Murray, L. W., Ray, I. M., Dong, H. and Segovia-Lerma, A. (2003). Clarification and reevaluation of population-based diallel analyses: Gardner and Eberhart Analyses II and III revisited. Crop Science, 43(6), 1930–1937. doi:10.2135/cropsci2003.1930
Other DiallelAnalysisR analyses:
Griffing(),
GriffingEnv(),
GriffingMeans(),
Hayman(),
Heterosis(),
LineTester(),
NCDesign(),
PartialDiallel()
#------------------------------------------------------------- ## Analysis II: varieties and heterosis #------------------------------------------------------------- ge2 <- GardnerEberhart( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData2 , Analysis = 2 , Model = 1 ) ge2 ge2$Effects plot(x = ge2, which = c("effects", "specific", "residuals", "qq")[1]) #------------------------------------------------------------- ## Analysis III: varieties, average heterosis, gca and sca #------------------------------------------------------------- ge3 <- GardnerEberhart( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData2 , Analysis = 3 , Model = 1 ) ge3$ANOVA#------------------------------------------------------------- ## Analysis II: varieties and heterosis #------------------------------------------------------------- ge2 <- GardnerEberhart( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData2 , Analysis = 2 , Model = 1 ) ge2 ge2$Effects plot(x = ge2, which = c("effects", "specific", "residuals", "qq")[1]) #------------------------------------------------------------- ## Analysis III: varieties, average heterosis, gca and sca #------------------------------------------------------------- ge3 <- GardnerEberhart( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData2 , Analysis = 3 , Model = 1 ) ge3$ANOVA
Griffing() performs the combining-ability analysis of a diallel cross by the four methods and two models of
Griffing (1956): the analysis of variance of general combining ability (gca), specific combining ability (sca) and
reciprocal effects, the estimates of the effects with their standard errors (fixed model) or the variance
components (random model), from the plot data of a randomized complete block experiment.
Griffing( y, Rep, Cross1, Cross2, data, Method, Model, Reciprocal = c("combined", "split") )Griffing( y, Rep, Cross1, Cross2, data, Method, Model, Reciprocal = c("combined", "split") )
y |
response: a column of |
Rep |
replicate (block): a column of |
Cross1 |
female parent of each plot: a column of |
Cross2 |
male parent of each plot: a column of |
data |
a data frame (or |
Method |
|
Model |
|
Reciprocal |
|
Data and cell means. Each plot belongs to a cross of parents (female,
Cross1) and (male, Cross2) and to a replicate (block). With parents and
replicates, the cell means form the matrix with elements
; , and are its row,
column and grand totals. The four methods differ in the cells present:
| Method 1 | parents, and reciprocal : all cells |
| Method 2 | parents and one set of : cells |
| Method 3 | and reciprocals, no parents: cells |
| Method 4 | one set of only: cells
|
In Methods 2 and 4 a cross may be recorded either way round (Cross1 = 3, Cross2 = 5 or the reverse);
it is stored with the lower-numbered parent first. Every cross of the method must be present; individual plots may
be missing. With missing plots the cell means are the least-squares means of the block analysis (block effects
summing to zero), which removes the bias a missing plot in a good or a poor block would cause, and in the
error variance of a cell mean is the harmonic mean of the numbers of plots per cross (exact when every cross has the
same number of plots, an approximation otherwise).
Model. The mean of cross is
with gca effects , symmetric sca effects
and reciprocal effects (Methods 1 and 3
only), and an error of variance . In the fixed model (Model = 1) the effects are
constants with and the sca and reciprocal effects summing to zero over each
array; in the random model (Model = 2) they are independent random variables with variances
, and .
Error mean square. The plot data are analysed as a randomized complete block design with the crosses as
treatments; is its residual mean square on degrees of freedom. The error line of the
combining-ability table is on the scale of a cell mean: sum of squares , mean square
.
Sums of squares (Griffing 1956; Singh and Chaudhary 2004), on the scale of cell means. Method 1:
on , and degrees of freedom. Method 2 (totals over
the symmetric table, each cross counted once in each of its two arrays):
on and degrees of freedom. Method 3:
, on degrees of freedom, as in
Method 1. Method 4: , . These are the sums of squares of the
orthogonal least-squares decomposition of the cell means into the gca, sca and reciprocal subspaces, which is how
they are computed (one computation for the four methods; the closed forms above are the result).
Tests. Fixed model: every line against . Random model: gca against sca, sca
and reciprocals against .
Effects (fixed model). Method 1: , ,
; Methods 2 to 4 analogously (Griffing 1956). The
standard errors of the effects and of their differences are of these linear
functions of the cell means with replaced by ; for Method 1 for example
,
,
,
,
.
Components. Fixed model, as in Griffing (1956): Method 1 gca , sca , reciprocal ; Method 2 gca , sca ; Method 3 gca , sca
, reciprocal as Method 1; Method 4 gca , sca . Random model: the
variance components solve the expected mean squares, for Method 1
for Method 2 , ; Method 3
, ; Method 4
, . The coefficients are
computed exactly from the design, so they hold for any number of parents. Additive and dominance variances follow
as and (non-inbred parents, no epistasis).
Maternal and non-maternal reciprocal effects. With Reciprocal = "split" the reciprocal effect is
written (Cockerham and Weir 1977), where
is the maternal effect of parent () and the non-maternal (specific) reciprocal effect. With the least-squares estimates are
and the reciprocal sum of squares splits into maternal,
on degrees of freedom, and non-maternal, the rest on
. Their expected mean squares are and , so in Model 2 the maternal line is tested against the non-maternal line and . The standard errors are for , for and
for .
Changes from version 0.6.0. The standard errors of Model 1 now use the error mean square; version 0.6.0
used the replicate mean square. In Method 2 the standard errors of and
were swapped in version 0.6.0. In Model 2 of Methods 1 and 3 the reciprocal line is tested
on the error degrees of freedom (version 0.6.0 used those of sca for its p-value). The third standard error of Method 4 (a Method 1 formula that has no meaning in
Method 4) is NA. The table of means keeps the parents' labels and has every parent in its rows and columns.
The sums of squares, tests, effects and components are unchanged.
An object of class c("da_griffing", "da_result", "list"), with the components of earlier versions
followed by new ones:
Means matrix of cell means, female parents in rows, male parents in columns
(NA for cells that are not part of the method).
ANOVAcombining-ability analysis of variance (class anova): lines gca, sca,
reciprocals (Methods 1 and 3) and Error; columns Df, Sum Sq, Mean Sq,
F value, Pr(>F).
Genetic.Componentsdata frame with one column Components: Model 1 rows gca,
sca, Reciprocal (Methods 1, 3), gca/sca; Model 2 rows gca, sca,
Reciprocal (Methods 1, 3), Error, Additive, Dominant (Dominance in Method
2), gca/sca.
Effects(Model 1) matrix: gca effects on the diagonal, sca effects above
it, reciprocal effects below it (Methods 1, 3; NA in Methods 2, 4).
StdErr(Model 1) named vector of standard errors of effects and of their differences: Method 1
gi, sii, sij, rij, gi_gj, sii_sjj, sii_sij, sii_sjk, sij_sik, sij_skl, rij_rkl; Method 2 gi, sii,
sij, gi_gj, sii_sjj, sij_sik, sij_skl; Method 3 gi, sij, rij, gi_gj, sij_sik, sij_skl; Method 4
gi, sij, not_defined, gi_gj, sij_sik, sij_skl.
GCA(new; Model 1) named vector of gca effects .
SCA(new; Model 1) symmetric matrix of sca effects, selfs included in Methods 1 and 2.
Reciprocal(new; Model 1, Methods 1 and 3) matrix of reciprocal effects,
.
Maternal, NonMaternal
(new; Model 1, Methods 1 and 3, Reciprocal = "split") vector of
maternal effects and matrix of non-maternal effects ; the
StdErr vector then also has mi, mi_mj and nij, the ANOVA lines
maternal and non-maternal in place of reciprocals, and Genetic.Components the rows
Maternal and NonMaternal in place of Reciprocal.
RCBD(new) analysis of variance of the plot data as a randomized complete block design (lines
Rep, Crosses, Residuals).
Methods: print(), summary(), plot() (gca effects with standard-error bars and the sca
effects as a heat map, residuals of the block analysis against fitted values, normal quantile plot of the
residuals, and a biplot of the cross means; which = c("gca", "sca", "biplot", "residuals", "qq")), anova(), coef(), vcov(),
confint(), fitted(), residuals(), predict(), data.table::as.data.table(x,
component =); see diallel-methods and da-methods.
Muhammad Yaseen ([email protected]), Kent M. Eskridge ([email protected])
Griffing, B. (1956). Concept of general and specific combining ability in relation to diallel crossing systems. Australian Journal of Biological Sciences, 9(4), 463–493. doi:10.1071/BI9560463
Cockerham, C. C. and Weir, B. S. (1977). Quadratic analyses of reciprocal crosses. Biometrics, 33(1), 187–203. doi:10.2307/2529312
Singh, R. K. and Chaudhary, B. D. (2004). Biometrical Methods in Quantitative Genetic Analysis. Kalyani Publishers, New Delhi.
Hayman, PartialDiallel, GriffingData1 to
GriffingData4, da-methods
Other DiallelAnalysisR analyses:
GardnerEberhart(),
GriffingEnv(),
GriffingMeans(),
Hayman(),
Heterosis(),
LineTester(),
NCDesign(),
PartialDiallel()
#------------------------------------------------------------- ## Method 1 (parents, F1 and reciprocals), Model 1 (fixed effects) #------------------------------------------------------------- Griffing1Data1 <- Griffing( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData1 , Method = 1 , Model = 1 ) Griffing1Data1 summary(Griffing1Data1) Griffing1Data1$ANOVA Griffing1Data1$StdErr data.table::as.data.table(Griffing1Data1, component = "ANOVA") plot(Griffing1Data1) #------------------------------------------------------------- ## Method 1, Model 2 (random effects) #------------------------------------------------------------- Griffing2Data1 <- Griffing( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData1 , Method = 1 , Model = 2 ) Griffing2Data1$Genetic.Components #------------------------------------------------------------- ## Method 2 (parents and one set of F1), Model 1 #------------------------------------------------------------- Griffing1Data2 <- Griffing( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData2 , Method = 2 , Model = 1 ) Griffing1Data2$ANOVA Griffing1Data2$GCA #------------------------------------------------------------- ## Method 3 (F1 and reciprocals), Model 1 #------------------------------------------------------------- Griffing1Data3 <- Griffing( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData3 , Method = 3 , Model = 1 ) Griffing1Data3$ANOVA #------------------------------------------------------------- ## Method 4 (one set of F1), Model 2 #------------------------------------------------------------- Griffing2Data4 <- Griffing( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData4 , Method = 4 , Model = 2 ) Griffing2Data4$Genetic.Components#------------------------------------------------------------- ## Method 1 (parents, F1 and reciprocals), Model 1 (fixed effects) #------------------------------------------------------------- Griffing1Data1 <- Griffing( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData1 , Method = 1 , Model = 1 ) Griffing1Data1 summary(Griffing1Data1) Griffing1Data1$ANOVA Griffing1Data1$StdErr data.table::as.data.table(Griffing1Data1, component = "ANOVA") plot(Griffing1Data1) #------------------------------------------------------------- ## Method 1, Model 2 (random effects) #------------------------------------------------------------- Griffing2Data1 <- Griffing( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData1 , Method = 1 , Model = 2 ) Griffing2Data1$Genetic.Components #------------------------------------------------------------- ## Method 2 (parents and one set of F1), Model 1 #------------------------------------------------------------- Griffing1Data2 <- Griffing( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData2 , Method = 2 , Model = 1 ) Griffing1Data2$ANOVA Griffing1Data2$GCA #------------------------------------------------------------- ## Method 3 (F1 and reciprocals), Model 1 #------------------------------------------------------------- Griffing1Data3 <- Griffing( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData3 , Method = 3 , Model = 1 ) Griffing1Data3$ANOVA #------------------------------------------------------------- ## Method 4 (one set of F1), Model 2 #------------------------------------------------------------- Griffing2Data4 <- Griffing( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData4 , Method = 4 , Model = 2 ) Griffing2Data4$Genetic.Components
The means of the 36 crosses among nine inbred lines of maize (Griffing's Method 4) used in the
numerical example of Griffing (1956), from data of Griffing and Lindstrom (1954): six randomized blocks with 13
plants per plot. The error mean squares of the experiment (Griffing 1956, Table 7) are, per plant: within plots
1642.48 (total yield), 46.61 (cob weight), 1247.39 (shelled corn) on 2558 degrees of freedom; varieties by blocks
11803.61, 235.82, 9056.45 on 175 degrees of freedom. Divided by the 78 plants of a cross mean they give the error
of GriffingMeans for Model 1 and Model 2.
data(Griffing56)data(Griffing56)
A data.frame with 36 rows and 5 columns:
Cross1, Cross2
the two parents of the cross (factors, levels 1 to 9;
Cross1 < Cross2).
TotalYield, total yield (the sum of the next two).
CobWeight, cob weight.
ShelledCorn, shelled corn weight.
Muhammad Yaseen ([email protected])
Griffing (1956), Table 6, page 482.
Griffing, B. (1956). Concept of general and specific combining ability in relation to diallel crossing systems. Australian Journal of Biological Sciences, 9(4), 463–493. doi:10.1071/BI9560463
Griffing, B. and Lindstrom, E. W. (1954). A study of the combining abilities of corn inbreds having varying proportions of corn belt and non-corn belt germ plasm. Agronomy Journal, 46, 545–552.
Other DiallelAnalysisR data:
GriffingData1,
GriffingData2,
GriffingData3,
GriffingData4,
HaymanData,
LineTesterData,
NCData,
PartialDiallelData
data(Griffing56) head(Griffing56)data(Griffing56) head(Griffing56)
Yield of an eight-parent diallel with parents, and reciprocal (all 64 crosses) in a
randomized complete block experiment with four replicates. The data for Griffing's Methods 2, 3 and 4
(GriffingData2, GriffingData3, GriffingData4) are subsets of these plots,
and HaymanData is the same data set.
data(GriffingData1)data(GriffingData1)
A data.frame with 256 rows (64 crosses by 4 replicates) and 4 columns:
Cross1female parent (factor, levels 1 to 8).
Cross2male parent (factor, levels 1 to 8); Cross1 == Cross2 for the parents.
Repreplicate (factor, levels 1 to 4).
Yieldyield (numeric).
Muhammad Yaseen ([email protected])
Example data of the package since its first version.
Griffing, B. (1956). Concept of general and specific combining ability in relation to diallel crossing systems. Australian Journal of Biological Sciences, 9(4), 463–493. doi:10.1071/BI9560463
Singh, R. K. and Chaudhary, B. D. (2004). Biometrical Methods in Quantitative Genetic Analysis. Kalyani Publishers, New Delhi.
Other DiallelAnalysisR data:
Griffing56,
GriffingData2,
GriffingData3,
GriffingData4,
HaymanData,
LineTesterData,
NCData,
PartialDiallelData
data(GriffingData1) str(GriffingData1) with(data = GriffingData1, expr = tapply(X = Yield, INDEX = list(Cross1, Cross2), FUN = mean))data(GriffingData1) str(GriffingData1) with(data = GriffingData1, expr = tapply(X = Yield, INDEX = list(Cross1, Cross2), FUN = mean))
The plots of GriffingData1 with the parents and the crosses ,
(36 cells).
data(GriffingData2)data(GriffingData2)
A data.frame with 144 rows (36 cells by 4 replicates) and the columns of
GriffingData1: Cross1, Cross2, Rep, Yield.
Muhammad Yaseen ([email protected])
A subset of GriffingData1.
Griffing, B. (1956). Concept of general and specific combining ability in relation to diallel crossing systems. Australian Journal of Biological Sciences, 9(4), 463–493. doi:10.1071/BI9560463
Other DiallelAnalysisR data:
Griffing56,
GriffingData1,
GriffingData3,
GriffingData4,
HaymanData,
LineTesterData,
NCData,
PartialDiallelData
data(GriffingData2) str(GriffingData2)data(GriffingData2) str(GriffingData2)
The plots of GriffingData1 without the parents (56 cells).
data(GriffingData3)data(GriffingData3)
A data.frame with 224 rows (56 cells by 4 replicates) and the columns of
GriffingData1: Cross1, Cross2, Rep, Yield.
Muhammad Yaseen ([email protected])
A subset of GriffingData1.
Griffing, B. (1956). Concept of general and specific combining ability in relation to diallel crossing systems. Australian Journal of Biological Sciences, 9(4), 463–493. doi:10.1071/BI9560463
Other DiallelAnalysisR data:
Griffing56,
GriffingData1,
GriffingData2,
GriffingData4,
HaymanData,
LineTesterData,
NCData,
PartialDiallelData
data(GriffingData3) str(GriffingData3)data(GriffingData3) str(GriffingData3)
The plots of GriffingData1 with the crosses , only (28
cells).
data(GriffingData4)data(GriffingData4)
A data.frame with 112 rows (28 cells by 4 replicates) and the columns of
GriffingData1: Cross1 (levels 1 to 7), Cross2 (levels 2 to
8), Rep, Yield.
Muhammad Yaseen ([email protected])
A subset of GriffingData1.
Griffing, B. (1956). Concept of general and specific combining ability in relation to diallel crossing systems. Australian Journal of Biological Sciences, 9(4), 463–493. doi:10.1071/BI9560463
Other DiallelAnalysisR data:
Griffing56,
GriffingData1,
GriffingData2,
GriffingData3,
HaymanData,
LineTesterData,
NCData,
PartialDiallelData
data(GriffingData4) str(GriffingData4)data(GriffingData4) str(GriffingData4)
GriffingEnv() combines Griffing's analysis of the same diallel grown in several environments (locations,
years or seasons), each a randomized complete block experiment: the pooled analysis of variance with the
interactions gca environment, sca environment and, in Methods 1 and 3,
reciprocal environment, the effects from the means over environments, the gca effects in every
environment and, in the random model, the variance components.
GriffingEnv(y, Rep, Cross1, Cross2, Env, data, Method, Model)GriffingEnv(y, Rep, Cross1, Cross2, Env, data, Method, Model)
y |
response: a column of |
Rep |
replicate (block): a column of |
Cross1 |
female parent of each plot: a column of |
Cross2 |
male parent of each plot: a column of |
Env |
environment of each plot: a column of |
data |
a data frame (or |
Method |
|
Model |
|
Let be the table of cross means in environment ,
their mean and the sum of squares of line (gca,
sca, reciprocals) of Griffing's analysis of a table. Because each line is a projection of the table,
the first term being line and the second its interaction with environments, on and
degrees of freedom. The environments line is with cells per table. Everything is on the scale of cross means;
the error is the pooled error of the block analyses divided by (harmonic mean of the replicates over
environments), on the pooled degrees of freedom, and Rep(Env) is the pooled replicate line on the same
scale.
With Model = 1 every line is tested against the error. With Model = 2 (random genotypes and
environments) environments are tested against replicates within environments, gca, sca and reciprocals against
their interaction with environments, and the interactions against the error; with the
coefficients of the expected mean squares of the single-environment analysis,
The standard errors of the effects over environments are those of Griffing with the error variance
.
An object of class c("da_griffingenv", "da_result", "list"):
Meanstable of cross means over environments.
ANOVApooled analysis of variance (class anova).
GCAgca effects over environments; GCA.Env: matrix of gca effects, parents by
environments.
SCAsca effects over environments; Reciprocal (Methods 1 and 3) reciprocal effects.
StdErrstandard errors of the effects over environments, as in Griffing.
Genetic.Components(Model 2) variance components.
ByEnvlist of the single-environment Griffing analyses.
Methods: print(), summary(), plot() (which = c("gca", "gcaenv", "sca", "residuals",
"qq"); "gcaenv" draws the gca effect of every parent in every environment), data.table::as.data.table(x,
component =), da_export.
Muhammad Yaseen ([email protected])
Griffing, B. (1956). Concept of general and specific combining ability in relation to diallel crossing systems. Australian Journal of Biological Sciences, 9(4), 463–493. doi:10.1071/BI9560463
Singh, R. K. and Chaudhary, B. D. (2004). Biometrical Methods in Quantitative Genetic Analysis. Kalyani Publishers, New Delhi.
Zhang, Y. and Kang, M. S. (1997). DIALLEL-SAS: a SAS program for Griffing's diallel analyses. Agronomy Journal, 89(2), 176–182. doi:10.2134/agronj1997.00021962008900020005x
Other DiallelAnalysisR analyses:
GardnerEberhart(),
Griffing(),
GriffingMeans(),
Hayman(),
Heterosis(),
LineTester(),
NCDesign(),
PartialDiallel()
#------------------------------------------------------------- ## A Method 2 diallel of six parents in three environments #------------------------------------------------------------- d <- DiallelSim( Parents = 6 , Method = 2 , Rep = 3 , Env = 3 , Mean = 50 , gca = 4 , sca = 2 , rec = 0 , gcaEnv = 1.5 , scaEnv = 1 , EnvSD = 0 , Block = 0 , Error = 3 , seed = 1 ) fe <- GriffingEnv( y = y , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , Env = Env , data = d , Method = 2 , Model = 2 ) fe fe$GCA.Env plot(x = fe, which = c("gca", "gcaenv", "sca", "residuals", "qq")[2])#------------------------------------------------------------- ## A Method 2 diallel of six parents in three environments #------------------------------------------------------------- d <- DiallelSim( Parents = 6 , Method = 2 , Rep = 3 , Env = 3 , Mean = 50 , gca = 4 , sca = 2 , rec = 0 , gcaEnv = 1.5 , scaEnv = 1 , EnvSD = 0 , Block = 0 , Error = 3 , seed = 1 ) fe <- GriffingEnv( y = y , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , Env = Env , data = d , Method = 2 , Model = 2 ) fe fe$GCA.Env plot(x = fe, which = c("gca", "gcaenv", "sca", "residuals", "qq")[2])
GriffingMeans() performs Griffing's (1956) combining-ability analysis when only the cross means and the
error mean square are available, as in published examples: the cross means come from data (one row per
cross) and the error from the experiment's analysis of variance. The analysis is that of Griffing.
GriffingMeans(y, Cross1, Cross2, data, Method, Model, ErrorMS, ErrorDf)GriffingMeans(y, Cross1, Cross2, data, Method, Model, ErrorMS, ErrorDf)
y |
column of |
Cross1, Cross2
|
columns of |
data |
a data frame with one row per cross (and per parent in Methods 1 and 2). |
Method, Model
|
as in |
ErrorMS |
error mean square on the basis of a cross mean (see Details). |
ErrorDf |
degrees of freedom of |
Error. ErrorMS is the error mean square on the basis of a cross mean, Griffing's
for blocks and plants per plot: for Model 1 the
within-plot (or plot) error divided by the number of observations per mean, for Model 2 the variety by block mean
square divided by the same number (Griffing 1956, Tables 8 and 12). ErrorDf is its degrees of freedom.
All other quantities, formulas and components are as documented in Griffing.
An object of class c("da_griffing", "da_result", "list") with the components of
Griffing except RCBD (there are no plot data).
Muhammad Yaseen ([email protected])
Griffing, B. (1956). Concept of general and specific combining ability in relation to diallel crossing systems. Australian Journal of Biological Sciences, 9(4), 463–493. doi:10.1071/BI9560463
Other DiallelAnalysisR analyses:
GardnerEberhart(),
Griffing(),
GriffingEnv(),
Hayman(),
Heterosis(),
LineTester(),
NCDesign(),
PartialDiallel()
#------------------------------------------------------------- ## Griffing's (1956) example: Method 4, Model 1, total yield #------------------------------------------------------------- g56 <- GriffingMeans( y = TotalYield , Cross1 = Cross1 , Cross2 = Cross2 , data = Griffing56 , Method = 4 , Model = 1 , ErrorMS = 1642.48 / 78 , ErrorDf = 2558 ) g56$ANOVA round(x = g56$GCA, digits = 2) #------------------------------------------------------------- ## The same data with Model 2 (variety x block error) #------------------------------------------------------------- g56r <- GriffingMeans( y = TotalYield , Cross1 = Cross1 , Cross2 = Cross2 , data = Griffing56 , Method = 4 , Model = 2 , ErrorMS = 11803.61 / 78 , ErrorDf = 175 ) g56r$Genetic.Components#------------------------------------------------------------- ## Griffing's (1956) example: Method 4, Model 1, total yield #------------------------------------------------------------- g56 <- GriffingMeans( y = TotalYield , Cross1 = Cross1 , Cross2 = Cross2 , data = Griffing56 , Method = 4 , Model = 1 , ErrorMS = 1642.48 / 78 , ErrorDf = 2558 ) g56$ANOVA round(x = g56$GCA, digits = 2) #------------------------------------------------------------- ## The same data with Model 2 (variety x block error) #------------------------------------------------------------- g56r <- GriffingMeans( y = TotalYield , Cross1 = Cross1 , Cross2 = Cross2 , data = Griffing56 , Method = 4 , Model = 2 , ErrorMS = 11803.61 / 78 , ErrorDf = 175 ) g56r$Genetic.Components
Hayman() performs Hayman's analysis of a complete diallel (parents, and reciprocals: Griffing's
Method 1) from the plot data of a randomized complete block experiment: Hayman's analysis of variance (additive,
non-additive with its parts , , , maternal and reciprocal effects), the
array variances and covariances and with the - regression,
the components of variation , , , , and
with their standard errors, the derived genetic ratios and the tests of the adequacy of the additive-dominance
model.
Hayman(y, Rep, Cross1, Cross2, data)Hayman(y, Rep, Cross1, Cross2, data)
y |
response: a column of |
Rep |
replicate (block): a column of |
Cross1 |
female parent of each plot: a column of |
Cross2 |
male parent of each plot: a column of |
data |
a data frame (or |
Data. parents, all crosses, replicates. is the
matrix of cell means and the matrix of cell totals over replicates.
Analysis of variance (Hayman 1954b), with , ,
the totals of and all sums of squares divided by to the
plot scale:
(1 df) tests the mean deviation of the from the parents (directional dominance),
( df) whether that deviation differs among parents,
( df) the remaining dominance (sca), ( df) maternal effects and
( df) the remaining reciprocal differences; every line is tested against
the error of the block analysis.
Arrays. The reciprocal crosses are averaged: . Array is column of ; is its
variance and its covariance with the parents (the diagonal of ).
is the variance of the parents, the mean of the ,
the variance of the array means and the mean of the . The
regression is fitted by least squares; under the additive-dominance model
. The uniformity test (Hayman 1954a)
is compared with the distribution on 1 and degrees of freedom.
Components of variation (Hayman 1954a; Mather and Jinks 1982), with the error variance of a
cell mean (block and error sums of squares pooled, divided by ):
where is the mean of all cells and the mean of the parents. Their
standard errors use : , , ,
,
,
. Derived ratios: mean degree of dominance
, proportion of genes with positive and negative effects ,
ratio of dominant to recessive genes , the correlation of with the parental values , the number of gene
groups showing dominance and the narrow-sense heritability
.
for each array.
Changes from version 0.6.0. The column arguments are used (version 0.6.0 read the columns
Cross1 and Cross2 by name); subtracts (version 0.6.0 added
it); and both come from the reciprocal-averaged table (version 0.6.0 took
from the upper triangle and from the unaveraged rows); the derived ratios are named;
the lines , and of the analysis of variance divide by 4 where version 0.6.0
divided by the number of replicates (the two agree only with 4 replicates, as in HaymanData); the tests of
the model are returned (Tests).
An object of class c("da_hayman", "da_result", "list") with the components of earlier versions
followed by a new one:
Means matrix of cell means (female parents in rows).
ANOVAHayman's analysis of variance (class anova): Total, Rep,
Treatment, additive (a), non-additive (b) with b1, b2, b3,
maternal (c), reciprocal (d), Error.
VOLO, the variance of the parents.
In.Value, used to draw the limiting parabola.
a, b
intercept and slope of the regression of on .
Wr.Vr.Tableone row per array: Wr, Vr, Wr.Minus.Vr, Wr.Plus.Vr,
Yr (parental value), Wri (limiting parabola ),
Wrei (fitted regression), Wreip (line of unit slope through the means).
Components.of.VariationEstimate, StdErr, t.value of ,
, , , , .
Other.Parametersthe derived ratios (named rows).
Fr of each array.
Tests(new) uniformity test , and tests of and
: statistic, degrees of freedom, p-value.
Methods: print(), summary(), plot() (the - graph: limiting parabola,
regression line, line of unit slope, parents labelled; which = c("WrVr", "residuals", "qq")),
anova(), coef(), fitted(), residuals(), data.table::as.data.table(x,
component =); see diallel-methods.
Muhammad Yaseen ([email protected]), Kent M. Eskridge ([email protected])
Hayman, B. I. (1954a). The theory and analysis of diallel crosses. Genetics, 39(6), 789–809. doi:10.1093/genetics/39.6.789
Hayman, B. I. (1954b). The analysis of variance of diallel tables. Biometrics, 10(2), 235–244. doi:10.2307/3001877
Hayman, B. I. (1957). Interaction, heterosis and diallel crosses. Genetics, 42(3), 336–355. doi:10.1093/genetics/42.3.336
Jinks, J. L. and Hayman, B. I. (1953). The analysis of diallel crosses. Maize Genetics Cooperation Newsletter, 27, 48–54.
Mather, K. and Jinks, J. L. (1982). Biometrical Genetics, 3rd edition. Chapman and Hall, London.
Singh, R. K. and Chaudhary, B. D. (2004). Biometrical Methods in Quantitative Genetic Analysis. Kalyani Publishers, New Delhi.
Griffing, HaymanData, da-methods
Other DiallelAnalysisR analyses:
GardnerEberhart(),
Griffing(),
GriffingEnv(),
GriffingMeans(),
Heterosis(),
LineTester(),
NCDesign(),
PartialDiallel()
#------------------------------------------------------------- ## Hayman's analysis of a complete diallel #------------------------------------------------------------- Hayman1Data <- Hayman( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = HaymanData ) Hayman1Data Hayman1Data$ANOVA Hayman1Data$Components.of.Variation Hayman1Data$Other.Parameters Hayman1Data$Tests #------------------------------------------------------------- ## The Wr-Vr graph #------------------------------------------------------------- plot(Hayman1Data)#------------------------------------------------------------- ## Hayman's analysis of a complete diallel #------------------------------------------------------------- Hayman1Data <- Hayman( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = HaymanData ) Hayman1Data Hayman1Data$ANOVA Hayman1Data$Components.of.Variation Hayman1Data$Other.Parameters Hayman1Data$Tests #------------------------------------------------------------- ## The Wr-Vr graph #------------------------------------------------------------- plot(Hayman1Data)
The data of GriffingData1 (parents, and reciprocals of eight parents, four replicates),
used in the examples of Hayman.
data(HaymanData)data(HaymanData)
A data.frame with 256 rows and 4 columns: Cross1 (female parent), Cross2 (male
parent), Rep (replicate), Yield.
Muhammad Yaseen ([email protected])
Identical to GriffingData1.
Hayman, B. I. (1954). The theory and analysis of diallel crosses. Genetics, 39(6), 789–809. doi:10.1093/genetics/39.6.789
Other DiallelAnalysisR data:
Griffing56,
GriffingData1,
GriffingData2,
GriffingData3,
GriffingData4,
LineTesterData,
NCData,
PartialDiallelData
data(HaymanData) str(HaymanData)data(HaymanData) str(HaymanData)
Heterosis() estimates, for every cross of a diallel or a set of crosses grown with their parents in a
randomized complete block experiment, the heterosis over the mid-parent, over the better parent and over a standard
(check) variety, in percent, with tests of the underlying differences.
Heterosis( y, Rep, Cross1, Cross2, data, Check = NULL, Better = c("higher", "lower") )Heterosis( y, Rep, Cross1, Cross2, data, Check = NULL, Better = c("higher", "lower") )
y |
response: a column of |
Rep |
replicate (block): a column of |
Cross1 |
female parent of each plot: a column of |
Cross2 |
male parent of each plot: a column of |
data |
a data frame (or |
Check |
label of the standard (check) variety: a parent of the diallel or another entry of |
Better |
|
Means. is the mean of cross (crosses recorded both ways round
are kept apart, so reciprocal crosses have their own heterosis), the mean of parent and
the mean of the check; the means are least-squares means of the block analysis when plots are missing.
With replicates and error mean square on degrees of freedom
(Singh and Chaudhary 2004):
and the standard heterosis with . For a trait where lower values are better (days to flowering,
disease score) set Better = "lower": the better parent is then the lower one. The p-values are two-sided
on degrees of freedom.
An object of class c("da_heterosis", "da_result", "list"):
Meansmatrix of cross means (parents on the diagonal).
Heterosisdata.table, one row per cross: Cross1, Cross2, F1,
MidParent, BetterParent, MP (percent), t_MP, p_MP, BP,
t_BP, p_BP and, with a check, Check, SH, t_SH, p_SH.
StdErrstandard errors of the differences and (also used for the check).
RCBDanalysis of variance of the plot data.
Methods: print(), summary(), plot() (heterosis of every cross, significant ones marked;
which = c("MP", "BP", "SH", "residuals", "qq")), data.table::as.data.table(x, component =),
da_export.
Muhammad Yaseen ([email protected])
Fonseca, S. and Patterson, F. L. (1968). Hybrid vigor in a seven-parent diallel cross in common winter wheat (Triticum aestivum L.). Crop Science, 8(1), 85–88. doi:10.2135/cropsci1968.0011183X000800010025x
Singh, R. K. and Chaudhary, B. D. (2004). Biometrical Methods in Quantitative Genetic Analysis. Kalyani Publishers, New Delhi.
Other DiallelAnalysisR analyses:
GardnerEberhart(),
Griffing(),
GriffingEnv(),
GriffingMeans(),
Hayman(),
LineTester(),
NCDesign(),
PartialDiallel()
#------------------------------------------------------------- ## Parents and one set of crosses; parent 3 as the check #------------------------------------------------------------- het <- Heterosis( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData2 , Check = 3 , Better = c("higher", "lower")[1] ) het head(het$Heterosis) plot(x = het, which = c("MP", "BP", "SH", "residuals", "qq")[1])#------------------------------------------------------------- ## Parents and one set of crosses; parent 3 as the check #------------------------------------------------------------- het <- Heterosis( y = Yield , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = GriffingData2 , Check = 3 , Better = c("higher", "lower")[1] ) het head(het$Heterosis) plot(x = het, which = c("MP", "BP", "SH", "residuals", "qq")[1])
LineTester() carries out Kempthorne's (1957) line tester analysis of the crosses of
lines with testers in a randomized complete block experiment: the analysis of variance with
the split of the crosses into lines, testers and lines testers, the proportional contributions of
the three to the crosses' sum of squares, the general and specific combining ability effects with standard errors,
and the genetic variances.
LineTester(y, Rep, Line, Tester, data, Inbreeding = 0)LineTester(y, Rep, Line, Tester, data, Inbreeding = 0)
y |
response: a column of |
Rep |
replicate (block): a column of |
Line |
line (female) of each plot: a column of |
Tester |
tester (male) of each plot: a column of |
data |
a data frame (or |
Inbreeding |
inbreeding coefficient |
With replicates, cross means , line means , tester
means and grand mean :
with standard errors (lines),
(testers) and (crosses); a difference of two effects has
times these. The sums of squares are on the plot scale; the proportional contribution of lines is , and likewise for testers and lines testers.
Genetic variances. From the expected mean squares , and :
and with inbreeding coefficient of the parents and
(Singh and Chaudhary 2004). The degree of dominance is .
Missing plots are handled as in Griffing: least-squares cross means adjusted for blocks and the
harmonic mean of the plot numbers as ; every cross must have at least one plot.
An object of class c("da_linetester", "da_result", "list"):
Means matrix of cross means.
ANOVAanalysis of variance (class anova): Rep, Crosses, Lines,
Testers, Lines:Testers, Error.
Contributionproportional contributions (percent) of lines, testers and lines
testers.
GCA.Lines, GCA.Testers
gca effects (named vectors).
SCA matrix of sca effects.
StdErrstandard errors: gca_line, gca_tester, sca, gi_gj_line,
gi_gj_tester, sij_skl.
Genetic.Componentsdata frame: of lines, of testers and pooled,
, , , their ratio and
the degree of dominance.
Methods: print(), summary(), plot() (which = c("gca", "sca", "contribution", "biplot",
"residuals", "qq")), data.table::as.data.table(x, component =), da_export.
Muhammad Yaseen ([email protected])
Kempthorne, O. (1957). An Introduction to Genetic Statistics. John Wiley and Sons, New York.
Singh, R. K. and Chaudhary, B. D. (2004). Biometrical Methods in Quantitative Genetic Analysis. Kalyani Publishers, New Delhi.
NCDesign, PartialDiallel, LineTesterData
Other DiallelAnalysisR analyses:
GardnerEberhart(),
Griffing(),
GriffingEnv(),
GriffingMeans(),
Hayman(),
Heterosis(),
NCDesign(),
PartialDiallel()
lt <- LineTester( y = Yield , Rep = Rep , Line = Line , Tester = Tester , data = LineTesterData , Inbreeding = 1 ) lt lt$Contribution plot(x = lt, which = c("gca", "sca", "contribution", "biplot", "residuals", "qq")[1])lt <- LineTester( y = Yield , Rep = Rep , Line = Line , Tester = Tester , data = LineTesterData , Inbreeding = 1 ) lt lt$Contribution plot(x = lt, which = c("gca", "sca", "contribution", "biplot", "residuals", "qq")[1])
Simulated yields of the 24 crosses of eight lines with three testers in a randomized complete block experiment
with three replicates, drawn from a model with line, tester and line by tester effects. The data illustrate
LineTester.
data(LineTesterData)data(LineTesterData)
A data.frame with 72 rows and 4 columns:
Lineline (factor, L1 to L8).
Testertester (factor, T1 to T3).
Repreplicate (factor, 1 to 3).
Yieldyield (numeric).
Muhammad Yaseen ([email protected])
Simulated; the script is data-raw/LineTesterNC.R of the package sources.
Kempthorne, O. (1957). An Introduction to Genetic Statistics. John Wiley and Sons, New York.
Other DiallelAnalysisR data:
Griffing56,
GriffingData1,
GriffingData2,
GriffingData3,
GriffingData4,
HaymanData,
NCData,
PartialDiallelData
data(LineTesterData) with(data = LineTesterData, expr = tapply(X = Yield, INDEX = list(Line, Tester), FUN = mean))data(LineTesterData) with(data = LineTesterData, expr = tapply(X = Yield, INDEX = list(Line, Tester), FUN = mean))
Simulated yields for the three North Carolina designs, each in a randomized complete block experiment with three
replicates: Design I with six males each mated to four different females, Design II with five males crossed with
four females, and Design III with twelve males backcrossed to the two inbred parents P1 and
P2. The data illustrate NCDesign.
data(NCData)data(NCData)
A data.frame with 204 rows and 5 columns:
Designdesign, 1, 2 or 3 (integer).
Malemale parent (character).
Femalefemale parent (character; Design III: P1 or P2).
Repreplicate (factor, 1 to 3).
Yieldyield (numeric).
Muhammad Yaseen ([email protected])
Simulated; the script is data-raw/LineTesterNC.R of the package sources.
Comstock, R. E. and Robinson, H. F. (1948). The components of genetic variance in populations of biparental progenies and their use in estimating the average degree of dominance. Biometrics, 4(4), 254–266. doi:10.2307/3001412
Other DiallelAnalysisR data:
Griffing56,
GriffingData1,
GriffingData2,
GriffingData3,
GriffingData4,
HaymanData,
LineTesterData,
PartialDiallelData
data(NCData) table(NCData$Design)data(NCData) table(NCData$Design)
NCDesign() analyses the three mating designs of Comstock and Robinson (1948, 1952) grown in randomized
complete blocks: Design I (females nested within males), Design II (every male crossed with every female) and
Design III (males backcrossed to the two inbred parents of their population). It gives the analysis of variance,
the variance components and the additive and dominance variances with the average degree of dominance.
NCDesign(y, Rep, Male, Female, data, Design, Inbreeding = 0)NCDesign(y, Rep, Male, Female, data, Design, Inbreeding = 0)
y |
response: a column of |
Rep |
replicate (block): a column of |
Male |
male parent of each plot: a column of |
Female |
female parent of each plot (Design I: labels may repeat across males, as females are nested; Design
III: the two inbred parents): a column of |
data |
a data frame (or |
Design |
|
Inbreeding |
inbreeding coefficient |
is the number of replicates, the number of males and the number of females
per male; (Inbreeding) is the inbreeding coefficient of the parents, so that the covariance of
half sibs is and that of full sibs adds .
Design I. Lines males, females within males and error, with and : males are tested against females within males, and
, .
Design II. Lines males, females, males females and error; males and females are tested
against the interaction, the interaction against the error. (four times their mean) and .
Design III. Female has exactly two levels, the two inbred parents; the males are
plants. Lines males, testers (parents), males testers and error, all tested against the error, with
and ; with gene frequencies of one half and
(Inbreeding is not used).
In every design the average degree of dominance is .
Every male-female combination must have at least one plot; missing plots are handled with least-squares means as
in LineTester.
An object of class c("da_ncdesign", "da_result", "list"):
Meansmatrix of the cross means (males in rows).
ANOVAanalysis of variance (class anova).
Genetic.Componentsdata frame: the variance components of the design, ,
and the average degree of dominance.
Methods: print(), summary(), plot() (which = c("components", "residuals", "qq")),
data.table::as.data.table(x, component =), da_export.
Muhammad Yaseen ([email protected])
Comstock, R. E. and Robinson, H. F. (1948). The components of genetic variance in populations of biparental progenies and their use in estimating the average degree of dominance. Biometrics, 4(4), 254–266. doi:10.2307/3001412
Comstock, R. E. and Robinson, H. F. (1952). Estimation of average dominance of genes. In J. W. Gowen (ed.), Heterosis, 494–516. Iowa State College Press, Ames.
Hallauer, A. R., Carena, M. J. and Miranda Filho, J. B. (2010). Quantitative Genetics in Maize Breeding. Springer, New York. doi:10.1007/978-1-4419-0766-0
Other DiallelAnalysisR analyses:
GardnerEberhart(),
Griffing(),
GriffingEnv(),
GriffingMeans(),
Hayman(),
Heterosis(),
LineTester(),
PartialDiallel()
#------------------------------------------------------------- ## Design II: every male crossed with every female #------------------------------------------------------------- nc2 <- NCDesign( y = Yield , Rep = Rep , Male = Male , Female = Female , data = NCData[NCData$Design == 2, ] , Design = 2 , Inbreeding = 0 ) nc2 #------------------------------------------------------------- ## Designs I and III #------------------------------------------------------------- nc1 <- NCDesign( y = Yield , Rep = Rep , Male = Male , Female = Female , data = NCData[NCData$Design == 1, ] , Design = 1 , Inbreeding = 0 ) nc1$Genetic.Components nc3 <- NCDesign( y = Yield , Rep = Rep , Male = Male , Female = Female , data = NCData[NCData$Design == 3, ] , Design = 3 , Inbreeding = 0 ) plot(x = nc3, which = c("components", "residuals", "qq")[1])#------------------------------------------------------------- ## Design II: every male crossed with every female #------------------------------------------------------------- nc2 <- NCDesign( y = Yield , Rep = Rep , Male = Male , Female = Female , data = NCData[NCData$Design == 2, ] , Design = 2 , Inbreeding = 0 ) nc2 #------------------------------------------------------------- ## Designs I and III #------------------------------------------------------------- nc1 <- NCDesign( y = Yield , Rep = Rep , Male = Male , Female = Female , data = NCData[NCData$Design == 1, ] , Design = 1 , Inbreeding = 0 ) nc1$Genetic.Components nc3 <- NCDesign( y = Yield , Rep = Rep , Male = Male , Female = Female , data = NCData[NCData$Design == 3, ] , Design = 3 , Inbreeding = 0 ) plot(x = nc3, which = c("components", "residuals", "qq")[1])
PartialDiallel() analyses a partial diallel in which each of parents of a first group is crossed
with each of parents of a second group (a factorial mating design, also known as line by tester or North
Carolina design II), from the plot data of a randomized complete block experiment: the analysis of variance of the
general combining ability of each group and of the specific combining ability, the variance components, and the
gca and sca effects.
PartialDiallel(y, Rep, Cross1, Cross2, data)PartialDiallel(y, Rep, Cross1, Cross2, data)
y |
response: a column of |
Rep |
replicate (block): a column of |
Cross1 |
parent of group I (rows) of each plot: a column of |
Cross2 |
parent of group II (columns) of each plot: a column of |
data |
a data frame (or |
Data and model. is the matrix of cross means (group I in rows,
group II in columns) over replicates, with row means , column means
and grand mean . The mean of cross
is .
Analysis of variance (plot scale):
on , and degrees of freedom; their sum is the treatment
sum of squares on degrees of freedom; the error is the residual of the block analysis of the plot
data. Every line is tested against the error.
Effects. ,
,
.
Variance components (random model; Kempthorne 1957, Comstock and Robinson 1952):
, , . The column Percent gives the proportional contribution of each source to the treatment sum
of squares.
Changes from version 0.6.0. The column arguments are used (version 0.6.0 read the columns y,
Rep, Cross1 and Cross2 by name); the error line is on the plot scale like the other lines
(version 0.6.0 divided it by the number of replicates, so its values were too large by that factor
squared); the components are the variance components above (version 0.6.0 gave differences of mean squares and
their shares); the tables keep the parents' labels.
An object of class c("da_partial", "da_result", "list"):
Means matrix of cross means.
ANOVAanalysis of variance (class anova): Treat, GCA I, GCA II,
SCA, Error.
Genetic.ComponentsComponents (variance components of GCA I, GCA II,
SCA) and Percent (share of the treatment sum of squares, as a proportion).
Generalgca effects, group I followed by group II, named by parent.
Specific matrix of sca effects.
RCBD(new) analysis of variance of the plot data as a randomized complete block design.
Methods: print(), summary(), plot() (gca effects of both groups and the sca effects as a heat
map, residual plots; which = c("gca", "sca", "residuals", "qq")), anova(), coef(),
vcov(), confint(), fitted(), residuals(), data.table::as.data.table(x,
component =); see diallel-methods.
Muhammad Yaseen ([email protected]), Pedro A. M. Barbosa ([email protected])
Comstock, R. E. and Robinson, H. F. (1952). Estimation of average dominance of genes. In J. W. Gowen (ed.), Heterosis, 494–516. Iowa State College Press, Ames.
Kempthorne, O. (1957). An Introduction to Genetic Statistics. John Wiley and Sons, New York.
Kempthorne, O. and Curnow, R. N. (1961). The partial diallel cross. Biometrics, 17(2), 229–250. doi:10.2307/2527989
Singh, R. K. and Chaudhary, B. D. (2004). Biometrical Methods in Quantitative Genetic Analysis. Kalyani Publishers, New Delhi.
Griffing, PartialDiallelData, da-methods
Other DiallelAnalysisR analyses:
GardnerEberhart(),
Griffing(),
GriffingEnv(),
GriffingMeans(),
Hayman(),
Heterosis(),
LineTester(),
NCDesign()
#------------------------------------------------------------- ## Ten parents of group I crossed with four parents of group II #------------------------------------------------------------- Partial1 <- PartialDiallel( y = y , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = PartialDiallelData ) Partial1 Partial1$ANOVA Partial1$Genetic.Components plot(Partial1)#------------------------------------------------------------- ## Ten parents of group I crossed with four parents of group II #------------------------------------------------------------- Partial1 <- PartialDiallel( y = y , Rep = Rep , Cross1 = Cross1 , Cross2 = Cross2 , data = PartialDiallelData ) Partial1 Partial1$ANOVA Partial1$Genetic.Components plot(Partial1)
A partial diallel in which each of ten parents of a first group (1 to 10) is crossed with each of four
parents of a second group (11 to 14), in a randomized complete block experiment with four
replicates.
data(PartialDiallelData)data(PartialDiallelData)
A data.frame with 160 rows (40 crosses by 4 replicates) and 4 columns:
Cross1parent of group I (integer 1 to 10).
Cross2parent of group II (integer 11 to 14).
Repreplicate (integer 1 to 4).
yresponse (numeric).
Muhammad Yaseen ([email protected]), Pedro A. M. Barbosa ([email protected])
Example data of the package, contributed by Pedro A. M. Barbosa.
Kempthorne, O. and Curnow, R. N. (1961). The partial diallel cross. Biometrics, 17(2), 229–250. doi:10.2307/2527989
Other DiallelAnalysisR data:
Griffing56,
GriffingData1,
GriffingData2,
GriffingData3,
GriffingData4,
HaymanData,
LineTesterData,
NCData
data(PartialDiallelData) str(PartialDiallelData)data(PartialDiallelData) str(PartialDiallelData)