Package: dae 3.2.29

dae: Functions Useful in the Design and ANOVA of Experiments

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 <http://chris.brien.name/rpackages/>.

Authors:Chris Brien [aut, cre]

dae_3.2.29.tar.gz
dae_3.2.29.zip(r-4.5)dae_3.2.29.zip(r-4.4)dae_3.2.29.zip(r-4.3)
dae_3.2.29.tgz(r-4.4-any)dae_3.2.29.tgz(r-4.3-any)
dae_3.2.29.tar.gz(r-4.5-noble)dae_3.2.29.tar.gz(r-4.4-noble)
dae_3.2.29.tgz(r-4.4-emscripten)dae_3.2.29.tgz(r-4.3-emscripten)
dae.pdf |dae.html
dae/json (API)
NEWS

# Install 'dae' in R:
install.packages('dae', repos = c('https://briencj.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/briencj/dae/issues

Datasets:
  • ABC.Interact.dat - Randomly generated set of values indexed by three factors
  • BIBDWheat.dat - Data for a balanced incomplete block experiment
  • Cabinet1.des - A design for one of the growth cabinets in an experiment with 50 lines and 4 harvests
  • Casuarina.dat - Data for an experiment with rows and columns from Williams
  • 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
  • LatticeSquare_t49.des - A Lattice square design for 49 treatments
  • McIntyreTMV.dat - The design and data from McIntyre's (1955) two-phase experiment
  • Oats.dat - Data for an experiment to investigate nitrogen response of 3 oats varieties
  • SPLGrass.dat - Data for an experiment to investigate the effects of grazing patterns on pasture composition
  • Sensory3Phase.dat - Data for the three-phase sensory evaluation experiment in Brien, C.J. and Payne, R.W.
  • Sensory3PhaseShort.dat - Data for the three-phase sensory evaluation experiment in Brien, C.J. and Payne, R.W.

On CRAN:

110 exports 2.92 score 69 dependencies 7 dependents 4 mentions 349 scripts 2.0k downloads

Last updated 2 months agofrom:31b26abb17. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 22 2024
R-4.5-winNOTEAug 22 2024
R-4.5-linuxNOTEAug 22 2024
R-4.4-winOKAug 22 2024
R-4.4-macOKAug 22 2024
R-4.3-winOKAug 22 2024
R-4.3-macOKAug 22 2024

Exports:Ameasuresas.data.frame.pstructureas.numfacblockboundary.plotblockboundaryPlotcorrect.degfreedecomp.relatedegfreedegfree<-design.plotdesignAmeasuresdesignAnatomydesignBlocksGGPlotdesignGGPlotdesignLatinSqrSysdesignPlotdesignPlotlabelsdesignRandomizedesignTwophaseAnatomiesdetect.diffefficienciesefficiencies.p2canonefficiencies.pcanonefficiency.criteriaelementsextabfac.ar1matfac.combinefac.dividefac.genfac.genfactorsfac.matchfac.meanopfac.multinestedfac.nestedfac.recastfac.recodefac.splitfac.sumopfac.uncombinefac.uselogicalfac.vcmatfitted.aovlistfitted.errorsget.daeRNGkindget.daeToleranceharmonic.meaninteraction.ABC.plotis.allzerois.projectormarginalitymarginality.pcanonmarginality.pstructuremat.ar1mat.ar2mat.ar3mat.armamat.bandedmat.cormat.corgmat.dirprodmat.dirsummat.expmat.gaumat.ginvmat.Imat.Jmat.ma1mat.ma2mat.ncssvarmat.randommat.sarmat.sar2mat.Vpredmat.Vpredictsmponeno.repsporthogonalizeporthogonalize.listpower.expprint.aliasingprint.projectorprint.pstructureprint.summary.p2canonprint.summary.pcanonproj2.combineproj2.decompproj2.efficiencyproj2.eigenproj2.opsprojectorprojs.2canonprojs.canonprojs.combine.p2canonprojs.structurepstructurepstructure.formulaqqyeffectsrep.data.frameresid.errorsresiduals.aovlistrmvnormset.daeRNGkindset.daeTolerancestrengthsummary.p2canonsummary.pcanontukey.1dfyates.effectsZncsspline

Dependencies:abindbackportsbootbroomcarcarDataclicolorspacecorrplotcowplotcpp11DerivdoBydplyrfansifarvergenericsggplot2ggpubrggrepelggsciggsignifgluegridExtragtableisobandlabelinglatticelifecyclelme4magrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrmunsellnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigplyrpolynompurrrquantregR6RColorBrewerRcppRcppEigenrlangrstatixscalesSparseMstringistringrsurvivaltibbletidyrtidyselecttryCatchLogutf8vctrsviridisLitewithr

DesignNotes

Rendered fromDesignNotes.pdf.asisusingR.rsp::asison Aug 22 2024.

Last update: 2019-04-03
Started: 2019-04-03

Manual

Rendered fromdae-manual.pdf.asisusingR.rsp::asison Aug 22 2024.

Last update: 2019-04-03
Started: 2019-04-03

Readme and manuals

Help Manual

Help pageTopics
Functions Useful in the Design and ANOVA of Experimentsdae-package dae
Randomly generated set of values indexed by three factorsABC.Interact.dat
Coerces a pstructure.object to a data.frame.as.data.frame.pstructure
Convert a factor to a numeric vector, possibly centering or scaling the valuesas.numfac
Data for a balanced incomplete block experimentBIBDWheat.dat
This function plots a block boundary on a plot produced by 'designPlot'.blockboundaryPlot
A design for one of the growth cabinets in an experiment with 50 lines and 4 harvestsCabinet1.des
Data for an experiment with rows and columns from Williams (2002)Casuarina.dat
Check the degrees of freedom in an object of class projectorcorrect.degfree
Deprecated Functions in Package daeAmeasures blockboundary.plot dae-deprecated design.plot proj2.decomp proj2.ops projs.canon projs.structure
The intermittent, randomly-presented, startup tips.daeTips
Examines the relationship between the eigenvectors for two decompositionsdecomp.relate
Degrees of freedom extraction and replacementdegfree degfree<-
Calculates the average variance of pairwise differences from the variance matrix for predictionsdesignAmeasures
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.designAnatomy
Adds block boundaries to a plot produced by 'designGGPlot'.designBlocksGGPlot
Plots labels on two-way grids of coloured cells using 'ggplot2' to represent an experimental designdesignGGPlot
Generate a systematic plan for a Latin Square designdesignLatinSqrSys
A graphical representation of an experimental design using labels stored in a matrix.designPlot
Plots labels on a two-way grid using 'ggplot2'designPlotlabels
Randomize allocated to recipient factors to produce a layout for an experimentdesignRandomize
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.designTwophaseAnatomies
Computes the detectable difference for an experimentdetect.diff
Extracts the canonical efficiency factors from a 'pcanon.object' or a 'p2canon.object'.efficiencies efficiencies.p2canon efficiencies.pcanon
Computes efficiency criteria from a set of efficiency factorsefficiency.criteria
Extract the elements of an array specified by the subscriptselements
Systematic, main-unit design for an experiment to be run in a greenhouseExp249.munit.des
Expands the values in table to a vectorextab
forms the ar1 correlation matrix for a (generalized) factorfac.ar1mat
Combines several factors into onefac.combine
Divides a factor into several separate factorsfac.divide
Generate all combinations of several factors and, optionally, replicate themfac.gen
Generate all combinations of the levels of the supplied factors, without replicationfac.genfactors
Match, for each combination of a set of columns in 'x', the row that has the same combination in 'table'fac.match
computes the projection matrix that produces meansfac.meanop
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.multinested
creates a factor, the nested factor, whose values are generated within those of the factor nesting.facfac.nested
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.recast
Recodes factor 'levels' using values in a vector. The values in the vector do not have to be unique.fac.recode
Splits a factor whose levels consist of several delimited strings into several factorsfac.split
computes the summation matrix that produces sums corresponding to a (generalized) factorfac.sumop
Cleaves a single factor, each of whose levels has delimited strings, into several factors using the separated strings.fac.uncombine
Forms a two-level 'factor' from a 'logical' object.fac.uselogical
forms the variance matrix for the variance component of a (generalized) factorfac.vcmat
Data for a 2^4 factorial experimentFac4Proc.dat
Extract the fitted values for a fitted model from an aovlist objectfitted fitted.aovlist
Extract the fitted values for a fitted modelfitted.errors
Gets the value of daeRNGkind for the package dae from the daeEnv environmentget.daeRNGkind
Gets the value of daeTolerance for the package daeget.daeTolerance
Calcuates the harmonic mean.harmonic.mean
Plots an interaction plot for three factorsinteraction.ABC.plot
Tests whether all elements are approximately zerois.allzero
Tests whether an object is a valid object of class projectoris.projector
A Lattice square design for 49 treatmentsLatticeSquare_t49.des
Extracts the marginality matrix (matrices) from a 'pstructure.object' or a 'pcanon.object'.marginality marginality.pcanon marginality.pstructure
Forms an ar1 correlation matrixmat.ar1
Forms an ar2 correlation matrixmat.ar2
Forms an ar3 correlation matrixmat.ar3
Forms an arma correlation matrixmat.arma
Form a banded matrix from a vector of valuesmat.banded
Forms a correlation matrix in which all correlations have the same value.mat.cor
Forms a general correlation matrixmat.corg
Forms the direct product of two matricesmat.dirprod
Forms the direct sum of a list of matricesmat.dirsum
Forms an exponential correlation matrixmat.exp
Forms an exponential correlation matrixmat.gau
Computes the generalized inverse of a matrixmat.ginv
Forms a unit matrixmat.I
Forms a square matrix of onesmat.J
Forms an ma1 correlation matrixmat.ma1
Forms an ma2 correlation matrixmat.ma2
Calculates the variance matrix of the random effects for a natural cubic smoothing splinemat.ncssvar
Calculates the variance matrix for the random effects from a mixed model, based on a supplied formula or a matrix.mat.random
Forms an sar correlation matrixmat.sar
Forms an sar2 correlation matrixmat.sar2
Calculates the variances of a set of predicted effects from a mixed modelmat.Vpred
Calculates the variances of a set of predicted effects from a mixed model, based on supplied matrices or formulae.mat.Vpredicts
The design and data from McIntyre's (1955) two-phase experimentMcIntyreTMV.dat
computes the projection matrix that produces meansmeanop
Converts the first two levels of a factor into the numeric values -1 and +1mpone
Computes the number of replicates for an experimentno.reps
Data for an experiment to investigate nitrogen response of 3 oats varietiesOats.dat
Description of a p2canon objectp2canon.object
Description of a pcanon objectpcanon.object
Takes a list of 'projectors' and constructs a 'pstructure.object' that includes projectors, each of which has been orthogonalized to all projectors preceding it in the list.porthogonalize porthogonalize.list
Computes the power for an experimentpower.exp
Print an aliasing data.frameprint.aliasing
Print projectorsprint,projector-method print.projector
Prints a pstructure.objectprint.pstructure
Prints the values in an 'summary.p2canon' objectprint.summary.p2canon
Prints the values in an 'summary.pcanon' objectprint.summary.pcanon
Compute the projection and Residual operators for two, possibly nonorthogonal, projectorsproj2.combine
Computes the canonical efficiency factors for the joint decomposition of two projectorsproj2.efficiency
Canonical efficiency factors and eigenvectors in joint decomposition of two projectorsproj2.eigen
Create projectorsprojector
Class projectorcoerce,projector,matrix-method coerce<-,projector,matrix-method projector-class
A canonical analysis of the relationships between two sets of projectorsprojs.2canon
Extract, from a p2canon object, the projectors that give the combined canonical decompositionprojs.combine.p2canon
Takes a formula and constructs a 'pstructure.object' that includes the orthogonalized projectors for the terms in a formulapstructure pstructure.formula
Description of a pstructure objectpstructure.object
Half or full normal plot of Yates effectsqqyeffects
Replicate the rows of a data.frame by repeating each row consecutively and/or repeating all rows as a grouprep.data.frame
Extract the residuals for a fitted modelresid.errors
Extract the residuals from an aovlist objectresiduals residuals.aovlist
generates a vector of random values from a multivariate normal distributionrmvnorm
Data for the three-phase sensory evaluation experiment in Brien, C.J. and Payne, R.W. (1999)Sensory3Phase.dat Sensory3PhaseShort.dat
Sets the values of daeRNGkind for the package dae in the daeEnv environmentset.daeRNGkind
Sets the values of daeTolerance for the package daeset.daeTolerance
Methods for Function show in Package daeshow,ANY-method show,classRepresentation-method show,genericFunction-method show,MethodDefinition-method show,MethodSelectionReport-method show,MethodWithNext-method show,ObjectsWithPackage-method show,oldClass-method show,projector-method show,signature-method show,traceable-method show-methods
Data for an experiment to investigate the effects of grazing patterns on pasture compositionSPLGrass.dat
Generate paper strength valuesstrength
Summarize a canonical analysis of the relationships between two sets of projectorssummary,p2canon-method summary.p2canon
Summarizes the anatomy of a design, being the decomposition of the sample space based on its canonical analysis, as produced by designAnatomysummary,pcanon-method summary.pcanon
Performs Tukey's one-degree-of-freedom-test-for-nonadditivitytukey.1df
Extract Yates effectsyates.effects
Calculates the design matrix for fitting the random component of a natural cubic smoothing splineZncsspline