Learn R Programming

⚠️There's a newer version (3.2.30) of this package.Take me there.

dae (version 3.2-10)

Functions Useful in the Design and ANOVA of Experiments

Description

The content falls into the following groupings: (i) Data, (ii) Factor manipulation functions, (iii) Design functions, (iv) ANOVA functions, (v) Matrix functions, (vi) Projector and canonical efficiency functions, and (vii) Miscellaneous functions. There is a vignette describing how to use the design functions for randomizing and assessing designs available as a vignette called 'DesignNotes'. The ANOVA functions facilitate the extraction of information when the 'Error' function has been used in the call to 'aov'. The package 'dae' can also be installed from .

Copy Link

Version

Install

install.packages('dae')

Monthly Downloads

1,095

Version

3.2-10

License

GPL (>= 2)

Maintainer

Chris Brien

Last Published

August 6th, 2021

Functions in dae (3.2-10)

BIBDWheat.dat

Data for a balanced incomplete block experiment
LatticeSquare_t49.des

A Lattice square design for 49 treatments
Cabinet1.des

A design for one of the growth cabinets in an experiment with 50 lines and 4 harvests
ABC.Interact.dat

Randomly generated set of values indexed by three factors
McIntyreTMV.dat

The design and data from McIntyre's (1955) two-phase experiment
SPLGrass.dat

Data for an experiment to investigate the effects of grazing patterns on pasture composition
Oats.dat

Data for an experiment to investigate nitrogen response of 3 oats varieties
Exp249.munit.des

Systematic, main-unit design for an experiment to be run in a greenhouse
Fac4Proc.dat

Data for a 2^4 factorial experiment
Casuarina.dat

Data for an experiment with rows and columns from Williams (2002)
blockboundaryPlot

correct.degfree

Check the degrees of freedom in an object of class projector
dae-package

dae
dae-deprecated

Deprecated Functions in Package dae
Sensory3Phase.dat

Data for the three-phase sensory evaluation experiment in Brien, C.J. and Payne, R.W. (1999)
Zncsspline

Calculates the design matrix for fitting the random component of a natural cubic smoothing spline
decomp.relate

Examines the relationship between the eigenvectors for two decompositions
daeTips

The intermittent, randomly-presented, startup tips.
as.data.frame.pstructure

Coerces a pstructure.object to a data.frame.
as.numfac

Convert a factor to a numeric vector
degfree

Degrees of freedom extraction and replacement
designAmeasures

Calculates the average variance of pairwise differences from the variance matrix for predictions
designPlotlabels

Plots labels on a two-way grid using ggplot2
designRandomize

Randomize allocated to recipient factors to produce a layout for an experiment
designPlot

A graphical representation of an experimental design using labels stored in a matrix.
designGGPlot

Plots labels on two-way grids of coloured cells using ggplot2
designLatinSqrSys

Generate a systematic plan for a Latin Square design
designBlocksGGPlot

designAnatomy

Given the layout for a design, obtain its anatomy via the canonical analysis of its projectors to show the confounding and aliasing inherent in the design.
designTwophaseAnatomies

Given the layout for a design and three structure formulae, obtain the anatomies for the (i) two-phase, (ii) first-phase, (iii) cross-phase, treatments, and (iv) combined-units designs.
fac.genfactors

Generate all combinations of the levels of the supplied factors, without replication
fac.combine

Combines several factors into one
fac.gen

Generate all combinations of several factors and, optionally, replicate them
elements

Extract the elements of an array specified by the subscripts
efficiency.criteria

Computes efficiency criteria from a set of efficiency factors
fac.recode

Recodes factor levels using values in a vector. The values in the vector do not have to be unique.
fac.multinested

Creates several factors, one for each level of nesting.fac and each of whose values are either generated within those of a level of nesting.fac or using the values of nested.fac within a levels of nesting.fac.
fac.recast

Recasts a factor by modifying the values in the factor vector and/or the levels attribute, possibly combining some levels into a single level.
fac.nested

creates a factor, the nested factor, whose values are generated within those of the factor nesting.fac
fac.divide

Divides a factor into several individual factors
fac.vcmat

forms the variance matrix for the variance component of a (generalized) factor
fac.uselogical

detect.diff

Computes the detectable difference for an experiment
efficiencies

fitted.aovlist

Extract the fitted values for a fitted model from an aovlist object
fac.ar1mat

forms the ar1 correlation matrix for a (generalized) factor
extab

Expands the values in table to a vector
fac.split

Splits a factor whose levels consist of several delimited strings into several factors
fac.meanop

computes the projection matrix that produces means
fac.match

Match, for each combination of a set of columns in x, the row that has the same combination in table
is.allzero

Tests whether all elements are approximately zero
interaction.ABC.plot

Plots an interaction plot for three factors
fac.sumop

computes the summation matrix that produces sums corresponding to a (generalized) factor
get.daeTolerance

Gets the value of daeTolerance for the package dae
mat.ar3

Forms an ar3 correlation matrix
mat.I

Forms a unit matrix
mat.arma

Forms an arma correlation matrix
marginality

is.projector

Tests whether an object is a valid object of class projector
mat.exp

Forms an exponential correlation matrix
mat.ma2

Forms an ma2 correlation matrix
mat.dirsum

Forms the direct sum of a list of matrices
harmonic.mean

Calcuates the harmonic mean.
mat.banded

Form a banded matrix from a vector of values
fitted.errors

Extract the fitted values for a fitted model
mat.Vpred

Calculates the variances of a set of predicted effects from a mixed model
mat.Vpredicts

Calculates the variances of a set of predicted effects from a mixed model, based on supplied matrices or formulae.
mat.random

Calculates the variance matrix for the random effects from a mixed model, based on a supplied formula or a matrix.
print.pstructure

Prints a pstructure.object
print.projector

Print projectors
p2canon.object

Description of a p2canon object
meanop

computes the projection matrix that produces means
mat.sar2

Forms an sar2 correlation matrix
mat.J

Forms a square matrix of ones
no.reps

Computes the number of replicates for an experiment
mpone

Converts the first two levels of a factor into the numeric values -1 and +1
pcanon.object

Description of a pcanon object
mat.dirprod

Forms the direct product of two matrices
print.summary.pcanon

print.summary.p2canon

projs.combine.p2canon

Extract, from a p2canon object, the projectors that give the combined canonical decomposition
projector-class

Class projector
proj2.eigen

Canonical efficiency factors and eigenvectors in joint decomposition of two projectors
mat.sar

Forms an sar correlation matrix
summary.pcanon

Summarizes the anatomy of a design, being the decomposition of the sample space based on its canonical analysis, as produced by designAnatomy
tukey.1df

Performs Tukey's one-degree-of-freedom-test-for-nonadditivity
pstructure.formula

Takes a formula and constructs a pstructure.object that includes the orthogonalized projectors for the terms in a formula
proj2.combine

Compute the projection and Residual operators for two, possibly nonorthogonal, projectors
qqyeffects

Half or full normal plot of Yates effects
set.daeTolerance

Sets the values of daeTolerance for the package dae
mat.ncssvar

Calculates the variance matrix of the random effects for a natural cubic smoothing spline
show-methods

Methods for Function show in Package dae
proj2.efficiency

Computes the canonical efficiency factors for the joint decomposition of two projectors
pstructure.object

Description of a pstructure object
summary.p2canon

Summarize a canonical analysis of the relationships between two sets of projectors
strength

Generate paper strength values
projector

Create projectors
yates.effects

Extract Yates effects
projs.2canon

A canonical analysis of the relationships between two sets of projectors
power.exp

Computes the power for an experiment
mat.gau

Forms an exponential correlation matrix
rep.data.frame

Replicate the rows of a data.frame by repeating each row consecutively and/or repeating all rows as a group
mat.ar2

Forms an ar2 correlation matrix
mat.ma1

Forms an ma1 correlation matrix
mat.ar1

Forms an ar1 correlation matrix
resid.errors

Extract the residuals for a fitted model
residuals.aovlist

Extract the residuals from an aovlist object
print.aliasing

Print an aliasing data.frame
rmvnorm

generates a vector of random values from a multivariate normal distribution