Learn R Programming

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

VCA (version 1.3.4)

Variance Component Analysis

Description

ANOVA and REML estimation of linear mixed models is implemented, once following Searle et al. (1991, ANOVA for unbalanced data), once making use of the 'lme4' package. The primary objective of this package is to perform a variance component analysis (VCA) according to CLSI EP05-A3 guideline "Evaluation of Precision of Quantitative Measurement Procedures" (2014). There are plotting methods for visualization of an experimental design, plotting random effects and residuals. For ANOVA type estimation two methods for computing ANOVA mean squares are implemented (SWEEP and quadratic forms). The covariance matrix of variance components can be derived, which is used in estimating confidence intervals. Linear hypotheses of fixed effects and LS means can be computed. LS means can be computed at specific values of covariables and with custom weighting schemes for factor variables. See ?VCA for a more comprehensive description of the features.

Copy Link

Version

Install

install.packages('VCA')

Monthly Downloads

1,041

Version

1.3.4

License

GPL (>= 3)

Maintainer

Andre Schuetzenmeister

Last Published

July 18th, 2018

Functions in VCA (1.3.4)

Trace

Compute the Trace of a Matrix.
fixef

Generic Method for Extracting Fixed Effects from a Fitted Model.
dataRS0005_1

Simulated Data of 5/3 Experiment.
DfSattHelper

Variance-Covariance Matrix of Fixed Effects as Function of Covariance Parameter Estimates.
buildList

Build a Nested List.
lmerSummary

getSSQsweep

ANOVA Sum of Squares via Sweeping.
Glucose

Inermediate Precision Data from CLSI EP05-A3
coef.VCA

Extract Fixed Effects from 'VCA' Object.
getBasis

Get Orthogonal Basis of a Matrix.
anovaMM

ANOVA-Type Estimation of Mixed Models.
Solve

Solve System of Linear Equations using Inverse of Cholesky-Root.
chol2invData

Dataset Generating Error in Function 'chol2inv'
dataEP05A3_MS_2

Simulated Data of a CLSI EP05-A3 3/5/5 Multi-Site Experiment
dataRS0003_3

Simulated Repeated Measurements Data.
ranef

Generic Method for Extracting Random Effects from a Fitted Model.
Sinv

Calling C-implementation of the SWEEP-Operator for Matrix-Inversion
HugeData

Huge Dataset with Three Variables
anovaVCA

ANOVA-Type Estimation of Variance Components for Random Models.
dataEP05A3_MS_3

Simulated Data of a CLSI EP05-A3 3/5/5 Multi-Site Experiment
Scale

Automatically Scale Data Calling These Functions: 'anovaVCA', 'anovaMM', 'remlVCA' or 'remlMM'.
getCmatrix

Coefficient Matrix for (V)ariance (C)omponent (A)nalysis.
model.matrix.VCA

Model Matrix of a Fitted VCA-Object.
fitLMM

Fit Linear Mixed Model by ANOVA or REML.
lmerMatrices

Derive and Compute Matrices for Objects Fitted by Function 'lmer'.
VCA-package

(V)ariance (C)omponent (A)nalysis.
getVCvar

Covariance-Matrix of Variance Components.
VCAdata1

Simulated Data for Variance Component Analysis.
scaleData

Scale Response Variable to Ensure Robust Numerical Calculations.
dataEP05A2_1

Simulated Data of a CLSI EP05-A2 20/2/2 Experiment
plotRandVar

Plot Random Variates of a Mixed Model ('VCA' Object).
orderData

Re-Order Data.Frame.
load_if_installed

Load 'RevoUtilsMath'-package if available.
ReproData1

Multi-Site Data for Estimating Reproducibility Precision
check4MKL

Check for Availability of Intel's Math Kernel Library.
test.lsmeans

Perform t-Tests for Linear Contrasts on LS Means.
SattDF

Satterthwaite Approximation for Total Degrees of Freedom and for Single Variance Components.
dataEP05A2_3

Simulated Data of a CLSI EP05-A2 20/2/2 Experiment
as.matrix.VCA

Standard 'as.matrix' Method for 'VCA' S3-Objects.
getSSQqf

ANOVA Sum of Squares via Quadratic Forms
print.VCAinference

Standard Print Method for Objects of Class 'VCAinference'.
fitVCA

Fit Variance Component Model by ANOVA or REML.
test.fixef

Perform t-Tests for Linear Contrasts on Fixed Effects.
stepwiseVCA

Bottom-Up Step-Wise VCA-Analysis of the Complete Dataset.
plot.VCA

Standard 'plot' Method for 'VCA' S3-Objects.
getAmatrix

Determine A-Matrix.
MLrepro

Multi-Lot Reproducibility Data.
legend.m

Add Legend to Margin.
model.frame.VCA

Extract the Model Frame from a 'VCA' Object.
dataEP05A2_2

Simulated Data of a CLSI EP05-A2 20/2/2 Experiment
getDDFM

Degrees of Freedom for Testing Linear Contrasts of Fixed Effects and Least Square Means.
lsmMat

Contrast Matrix for LS Means.
dataRS0005_3

Simulated Data of 5/3 Experiment.
lmerG

Construct Variance-Covariance Matrix of Random Effects for Models Fitted by Function 'lmer'.
vcovFixed

Calculate Variance-Covariance Matrix and Standard Errors of Fixed Effects for an 'VCA' Object.
remlVCA

Perform (V)ariance (C)omponent (A)nalysis via REML-Estimation.
dataRS0005_2

Simulated Data of 5/3 Experiment.
getV

Determine V-Matrix for a 'VCA' Object.
solveMME

Solve Mixed Model Equations.
fixef.VCA

Extract Fixed Effects from 'VCA' Object.
CA19_9

Reproducibility Example Dataset from CLSI EP05-A3
anovaDF

ANOVA Type-I Degrees of Freedom.
dataEP05A3_MS_1

Simulated Data of a CLSI EP05-A3 3/5/5 Multi-Site Experiment
VCAinference

Inferential Statistics for VCA-Results.
ranef.VCA

Extract Random Effects from 'VCA' Object.
isBalanced

Check Whether Design Is Balanced Or Not.
reScale

Re-Scale results of 'VCA' or 'VCAinference' objects which were constructed using scaled values of the response variable.
MPinv

Moore-Penrose Generalized Inverse of a Matrix.
remlMM

Fit Linear Mixed Models via REML.
print.VCA

Standard Printing Method for Objects of Class 'VCA'.
Orthodont

Orthodont dataset from R-package 'nlme'
predict.VCA

Predictions from a Model Fitted by fitLMM.
realData

Real-World Data
lsmeans

Least Squares Means of Fixed Effects.
getMat

Extract a Specific Matrix from a 'VCA' Object.
Csweep

Calling C-implementation of the SWEEP-Operator
getL

Construct Linear Contrast Matrix for Hypothesis Tests.
as.matrix.VCAinference

Standard 'as.matrix' Method for 'VCAinference' S3-Objects.
sleepstudy

sleepstudy dataset from R-package 'lme4'
dataRS0003_1

Simulated Repeated Measurements Data.
dataRS0003_2

Simulated Repeated Measurements Data.
getMM

Overparameterized Design Matrices.
getGB

Giesbrecht & Burns Approximation of the Variance-Covariance Matrix of Variance Components.
vcov.VCA

Calculate Variance-Covariance Matrix of Fixed Effects for an 'VCA' Object.
getDF

Extract Degrees of Freedom from Linear Hypotheses of Fixed Effects or LS Means.
vcovVC

Calculate Variance-Covariance Matrix of Variance Components of 'VCA' objects.
residuals.VCA

Extract Residuals of a 'VCA' Object.
varPlot

Variability Chart for Hierarchical Models.