Performing covariance analysis using python / scipy / statsmodel

Can someone help in providing an example showing how ANCOVA (covariance analysis) can be done in scipy / statsmodel using python?

I'm not sure that I ask too much, but a quick search showed me this , which is not very informative for me.

Thanks!

+2
scipy statsmodels
source share
1 answer

Statsmodels uses a linear model, OLS, to evaluate ANOVA. Thus, the presence of additional continuous regressors, as in ANCOVA, does not change the analysis.

Here are some links to related documentation.

Anova Helper Functions and ANCOVA Interaction Examples http://statsmodels.sourceforge.net/devel/examples/generated/example_interactions.html

using formulas to create the design matrix http://statsmodels.sourceforge.net/devel/example_formulas.html

OLS base model http://statsmodels.sourceforge.net/devel/generated/statsmodels.regression.linear_model.OLS.html

+5
source share

All Articles