CentreForDigitalHumanities / CentreForDigitalHumanities/programming-in-python

Python is a bit under-equipped for statistical modeling

未关闭
#9 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Jupyter Notebook
星标
1
派生
1
PR 合并指标
30 天内没有已合并 PR

描述

One of the course participants was trying to fit a linear mixed effects model with two levels of grouping. [`statsmodels.MixedLM`](https://www.statsmodels.org/stable/generated/statsmodels.regression.mixed_linear_model.MixedLM.html#statsmodels.regression.mixed_linear_model.MixedLM) does not support this. You can interface with R packages that provide this functionality through [pymer4](https://eshinjolly.com/pymer4/), but installing that in a Jupyter notebook is nontrivial because it also involves installing the dependent R packages.

Take home point: you can do statistical modeling in Python, but if your use case is somewhat advanced, you are probably better off using something more special-purpose such as R. We should add this as a note to the statistical modeling section in the tips.

贡献指南

打开贡献指南

调研方向

在 tips 中找到统计建模部分,并阅读其周围关于 Python 建模的指导。添加一条注释,说明 statsmodels.MixedLM 对两个分组层级的限制,以及 R 等更专业工具的适用性,然后验证该注释是否适合放在该部分中,并准确反映所链接的资源。

由索引模型根据 Issue 内容生成。

评估

技术栈
python, r
领域
documentation
Issue 类型
文档
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
50/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。