【问题标题】:Performing analysis of covariance with python/scipy/statsmodel使用 python/scipy/statsmodel 进行协方差分析
【发布时间】:2013-10-21 21:30:07
【问题描述】:

谁能帮助提供一个示例,说明如何在 scipy/statsmodel 中使用 python 进行 ANCOVA(协方差分析)?

我不确定我是否要求太多,但快速搜索显示this 这对我来说信息量不够。

谢谢!

【问题讨论】:

    标签: scipy statsmodels


    【解决方案1】:

    Statsmodels 使用线性模型 OLS 来估计 ANOVA。因此,在 ANCOVA 中添加额外的连续回归变量不会改变分析。

    这里有一些相关文档的链接

    Anova 辅助函数和 ANCOVA 交互的示例 http://statsmodels.sourceforge.net/devel/examples/generated/example_interactions.html

    使用公式创建设计矩阵 http://statsmodels.sourceforge.net/devel/example_formulas.html

    核心 OLS 模型 http://statsmodels.sourceforge.net/devel/generated/statsmodels.regression.linear_model.OLS.html

    【讨论】:

    猜你喜欢
    • 2017-10-19
    • 2020-12-03
    • 1970-01-01
    • 1970-01-01
    • 2021-11-19
    • 1970-01-01
    • 2017-11-23
    • 1970-01-01
    • 2021-12-15
    相关资源
    最近更新 更多