AnovaBase.jl Documentation

AnovaBase.jl is a Julia package providing a simple framework for Analysis of Varaincae (ANOVA) on various types of julia statistical models. It is similar to function anova in R.

Functionality overview

ANOVA

anova(model; type, test)
anova(test, model; type)
anova(models; test)
anova(test, models)

Model-specific ANOVA

AnovaGLM

anova_lm(formula, data; type, test)
anova_lm(test, formula, data; type)
anova_glm(formula, data, distr, link; type, test)
anova_glm(test, formula, data, distr, link; type)

AnovaMixedModels

anova_lme(formula, data; type, test)
anova_lme(test, formula, data; type)

AnovaFixedEffecModels

anova_lfe(formula, data, vcov; type, test)
anova_lfe(test, formula, data, vcov; type)

nestedmodels

nestedmodels(modeltype, formula, data)
nestedmodels(model)

Usage

This package is not intentded to be used directly. Use the following packages for different models:

Packages for modelsPackages for ANOVAModelsFitted by
GLM.jlAnovaGLM.jlTableRegressionModel{<: LinearModel}GLM.lm or fit(LinearModel, _)
TableRegressionModel{<: GeneralizedLinearModel}GLM.glm or fit(GeneralizedLinearModel, _)
MixedModels.jlAnovaMixedModels.jlLinearMixedModelAnovaMixedModels.lme or fit(LinearMixedModel, _)
GeneralizedLinearMixedModelAnovaGLM.glme or fit(GeneralizedLinearMixedModel, _)
FixedEffectModels.jlAnovaFixedEffectModels.jlFixedEffectModelAnovaFixedEffectModels.lfe or FixedEffectModels.reg

Tests for Goodness of Fit

  1. FTest: F-test
  2. LikelihoodRatioTest, LRT: likelihood-ratio test

Types of Estimable Functions

Type I, II, III SS are supported.

Table of Contents

Examples

Algorithm

Interfacing AnovaBase.jl

API