AnovaFixedEffectModels.jl
AnovaBase.anova
— Methodanova(<lfemodels>...; test::Type{<: GoodnessOfFit})
anova(<anovamodel>; test::Type{<: GoodnessOfFit})
anova(test::Type{<: GoodnessOfFit}, <lfemodels>...; <keyword arguments>)
anova(test::Type{<: GoodnessOfFit}, <anovamodel>; <keyword arguments>)
Analysis of variance.
Return AnovaResult{M, test, N}
. See AnovaResult
for details.
Arguments
lfemodels
: model objectsFixedEffectModel
fitted byAnovaFixedEffectModels.lfe
orFixedEffectModels.reg
.
anovamodel
: wrapped model objects;FullModel
andNestedModels
.test
: test statistics for goodness of fit. OnlyFTest
is available now.
Other keyword arguments
- When one model is provided:
type
specifies type of anova. Default value is 1.
- When multiple models are provided:
check
: allows to check if models are nested. Defalut value is true. Some checkers are not implemented now.
For fitting new models and conducting anova at the same time, see anova_lfe
for FixedEffectModel
.
AnovaFixedEffectModels.anova_lfe
— Functionanova_lfe(f::FormulaTerm, tbl, vcov::CovarianceEstimator = Vcov.simple();
test::Type{<: GoodnessOfFit} = FTest, <keyword arguments>)
anova_lfe(test::Type{<: GoodnessOfFit}, f::FormulaTerm, tbl, vcov::CovarianceEstimator = Vcov.simple(); <keyword arguments>)
ANOVA for fixed-effect linear regression.
vcov
: estimator of covariance matrix.type
: type of anova (1 , 2 or 3). Default value is 1.
anova_lfe
generates a FixedEffectModel
.
AnovaBase.nestedmodels
— Methodnestedmodels(<model>; <keyword arguments>)
nestedmodels(<model type>, formula, data; <keyword arguments>)
Create nested models NestedModels
from a model or modeltype, formula and data.
AnovaFixedEffectModels.lfe
— Functionlfe(formula::FormulaTerm, df, vcov::CovarianceEstimator = Vcov.simple(); kwargs...)
A GLM
-styled function to fit a fixed-effect model.