Learn R Programming

infoDecompuTE

InfoDecompuTE is capable of generating the structure of the analysis of variance (ANOVA) table of the two-phase experiments. By inputting the design and the relationships of the random and fixed factors using the Wilkinson-Rogers' syntax, infoDecompuTE can generate the structure of the ANOVA table with the coefficients of the variance components for the expected mean squares. This package can also study the balanced incomplete block design and provides the efficiency factors of the fixed effects.

Installation

infoDecompuTE is available from CRAN. Install it with:

install.packages("infoDecompuTE")

You can also install infoDecompuTE from github with:

# install.packages("devtools")
devtools::install_github("kcha193/infoDecompuTE")

Examples

The following examples uses infoDecompuTE to construct ANOVA table of single-phase and two-phase experiments

design1 <- local({ 
  Ani = as.factor(LETTERS[c(1,2,3,4,
                            5,6,7,8)])
  Trt = as.factor(letters[c(1,1,1,1,
                            2,2,2,2)])
  data.frame(Ani, Trt, stringsAsFactors = TRUE)
})

summaryAovOnePhase(design1, blk.str = "Ani", trt.str = "Trt") 

design2 <- local({ 
  Run = as.factor(rep(1:4, each = 4))
  Ani = as.factor(LETTERS[c(1,2,3,4,
                            5,6,7,8,
                            3,4,1,2,
                            7,8,5,6)])
  Sam = as.factor(as.numeric(duplicated(Ani)) + 1)
  Tag = as.factor(c(114,115,116,117)[rep(1:4, 4)])
  Trt = as.factor(c("healthy", "diseased")[c(1,2,1,2,
                            2,1,2,1,
                            1,2,1,2,
                            2,1,2,1)])
  data.frame(Run, Ani, Sam, Tag, Trt, stringsAsFactors = TRUE)
})
design2
                                  
summaryAovTwoPhase(design2, blk.str1 = "Ani", blk.str2 = "Run", 
trt.str = "Tag + Trt")  

Copy Link

Version

Install

install.packages('infoDecompuTE')

Monthly Downloads

238

Version

0.6.2

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

March 28th, 2020

Functions in infoDecompuTE (0.6.2)

getFixedEF.onePhase

Get the Fixed Components' coefficients and Efficiency Factors of Single-Phase Experiments.
getTrtCoef

Get the Treatment Coefficients
makeContrMat

Make Contrast Matrix
makeBlkDesMat

Construct Block Design Matrix
getEffFactor

Construct the Matrix from Information Decomposition and Compute the Efficiency Factors of Treatment effects
identityMat

Identity Matrix
infoDecompMat

Construct the Matrix from Information Decomposition
getTrtRep

Calculate the Treatment Replication number
unity

Construct a unity vector
tr

Trace of the Matrix
getVMat.onePhase

Get the Variance Matrices for Single-Phase experiment
getFixedEF.twoPhase

Get the Fixed Components' coefficients and Efficiency Factors of Two-Phase Experiments.
summaryAovTwoPhase

Summarize an Theoretical Analysis of Variance Model of Two-Phase Experiments
toLatexTable

Convert the R output to Latex Table
invInfMat

Invert the Information Matrix
makeOrthProjectors

Construct Orthogonal Projector Matrices
infoDecompuTE-package

Information Decomposition of Two-phase Experiments
makeOverDesMat

Construct the Overall Treatment or Block design Matrix
projMat

Construct a Projection Matrix
getVMat.twoPhase

Get the Variance Matrices for Two-Phase experiment
summaryAovOnePhase

Summarize an Theoretical Analysis of Variance Model of Single-Phase Experiments
K

Averaging Matrix
J

Identity Matrix Minus Averaging Matrix
chrisEx2

Randomised Block design consisted of 8 blocks and 2 plots.
chrisEx1

Randomised Block design consisted of 6 blocks and 3 plots.
getCoefVC.onePhase

Get Variance Components' Coefficients and Mean Squares for Single-Phase or Two-Phase Experiments
chrisEx3

Randomised Block design consisted of 4 blocks and 2 plots.
getCoefVC.twoPhase

Get Variance Components' Coefficients and Mean Squares for Single-Phase or Two-Phase Experiments
adjustEffectNames

Adjust the Effects' Names
adjustMissingLevels

Adjust the Missing Levels