Skip to contents

Analysis of variance

Fit the model of a design and get its least-squares means.

design_anova()
Analysis of variance of an experimental design
designs()
List the designs that can be analysed or randomised
ls_means()
Least-squares means of a design
recover_interblock()
Recover inter-block information (REML)
residuals(<ad_anova>) fitted(<ad_anova>) nobs(<ad_anova>) anova(<ad_anova>) as.data.frame(<ad_comparison>)
Standard methods for fitted designs

Assumptions

check_assumptions()
Check the assumptions of the analysis of variance
transformations()
Compare transformations of the response
box_cox()
Box-Cox profile likelihood of a design

Comparing treatments

compare_means()
Compare treatment means
waller_duncan()
Waller-Duncan k-ratio t test
waller_critical()
Critical t of the Waller-Duncan k-ratio test
trend()
Trend analysis of a quantitative factor
test_contrasts()
Test contrasts among the levels of a factor

Rank-based tests

nonparametric()
Rank-based and unequal-variance alternatives to the ANOVA
durbin_test()
Durbin test for balanced incomplete blocks
waerden_test()
van der Waerden normal-scores test
median_test()
Mood's median test

Planning experiments

make_design()
Randomise a field experiment
field_book()
Field book of a randomised layout
design_efficiency()
Efficiency factor of a block design
power_design()
Replicates and power for a difference between two treatments

Plant breeding

ammi()
AMMI analysis of a multi-environment trial
stability()
Stability statistics of a multi-environment trial
line_tester()
Line x tester analysis
diallel()
Diallel analysis by Griffing's methods
nc_design()
North Carolina designs I, II and III

Plant pathology and plot size

audpc() audps()
Area under the disease progress curve and stairs
audpc_by_unit()
AUDPC and AUDPS of every plot of a trial
smith_index()
Smith's index of soil heterogeneity
hatheway_size()
Plot size needed to detect a difference (Hatheway)

Figures and report

plot(<ad_ammi>)
Biplots of an AMMI analysis
plot(<ad_anova>)
Residual plots of a design
plot(<ad_comparison>)
Plot treatment means with their letters
plot(<ad_layout>)
Plot a randomised field layout
plot_cell_means()
Heat map of cell means
plot_differences()
Plot the pairwise differences with their intervals
plot_field()
Field map of the response or of the residuals
plot_interaction()
Interaction plot of two treatment factors
plot_ss_partition()
Partition of the total sum of squares
save_figure()
Save a figure to a file
agri_colors()
Colours of the AgriDesign figures
design_report()
Write an HTML report of an analysis

Example data

maize_nitrogen
Maize yield under four nitrogen rates (RCBD)
maize_wide
Maize nitrogen trial in wide format
bean_varieties
Yield of five bean varieties (CRD)
disease_scores
Disease severity scores under four fungicides (RCBD)
tomato_factorial
Tomato varieties by fertiliser (factorial in RCBD)
wheat_latin
Wheat yield in a 4 x 4 Latin square
split_irrigation
Irrigation systems by varieties (split-plot in RCBD)
bib_sorghum
Sorghum hybrids in a balanced incomplete block design (simulated)
blight_progress
Late blight progress under four fungicide programmes (simulated)
uniformity_trial
Uniformity trial of 24 x 16 basic units (simulated)
maize_met
Maize hybrids in six environments (multi-environment trial)
maize_lxt
Line x tester trial in maize
maize_diallel
Full diallel among six maize lines
nc_designs
North Carolina mating designs

Package

AgriDesign AgriDesign-package
AgriDesign: design and analysis of agricultural experiments