AnovaFixedEffectModels.jl
AnovaBase.anova — Method
anova(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 objectsFixedEffectModelfitted byAnovaFixedEffectModels.lfeorFixedEffectModels.reg.
anovamodel: wrapped model objects;FullModelandNestedModels.test: test statistics for goodness of fit. OnlyFTestis available now.
Other keyword arguments
- When one model is provided:
typespecifies 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 — Function
anova_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 — Method
nestedmodels(model; keyword_arguments...)
nestedmodels(model_type, formula, data; keyword_arguments...)Create nested models NestedModels from a model or model_type, formula and data.
AnovaFixedEffectModels.lfe — Function
lfe(formula::FormulaTerm, df, vcov::CovarianceEstimator = Vcov.simple(); kwargs...)A GLM-styled function to fit a fixed-effect model.