谁能帮忙提供一个示例,展示如何使用 python 在 scipy/statsmodel 中完成 ANCOVA(协方差分析)?
我不确定我的要求是否太多,但快速搜索表明我this https://stackoverflow.com/questions/2916760/ancova-in-python-with-scipy-numpy-stats这对我来说信息不够。
Thanks!
Statsmodels 使用线性模型 OLS 来估计方差分析。因此,在 ANCOVA 中添加额外的连续回归量不会改变分析。
以下是一些相关文档的链接
Anova 辅助函数和 ANCOVA 交互的示例http://statsmodels.sourceforge.net/devel/examples/ generated/example_interactions.html http://statsmodels.sourceforge.net/devel/examples/generated/example_interactions.html
使用公式创建设计矩阵http://statsmodels.sourceforge.net/devel/example_formulas.html http://statsmodels.sourceforge.net/devel/example_formulas.html
核心OLS模型http://statsmodels.sourceforge.net/devel/ generated/statsmodels.regression.linear_model.OLS.html http://statsmodels.sourceforge.net/devel/generated/statsmodels.regression.linear_model.OLS.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)