3.11.3.1.2. statsmodels.stats.anova.anova2_lm_single

statsmodels.stats.anova.anova2_lm_single(model, design_info, n_rows, test, pr_test, robust)[source]

ANOVA type II table for one fitted linear model.

Parameters:

model : fitted linear model results instance

A fitted linear model

**kwargs**

scale : float

Estimate of variance, If None, will be estimated from the largest

model. Default is None.

test : str {“F”, “Chisq”, “Cp”} or None Test statistics to provide. Default is “F”.

Notes

Use of this function is discouraged. Use anova_lm instead.

Type II Sum of Squares compares marginal contribution of terms. Thus, it is not particularly useful for models with significant interaction terms.