CentreForDigitalHumanities / CentreForDigitalHumanities/programming-in-python
Python is a bit under-equipped for statistical modeling
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 1
- Fork
- 1
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Xác định phần mô hình hóa thống kê trong mục hướng dẫn và đọc các hướng dẫn xung quanh phần đó về mô hình hóa bằng Python. Thêm một ghi chú giải thích hạn chế của statsmodels.MixedLM đối với hai cấp độ phân nhóm và sự phù hợp của các công cụ chuyên biệt hơn như R, sau đó xác minh rằng ghi chú phù hợp với phần này và phản ánh chính xác các tài nguyên được liên kết.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python, r
- Lĩnh vực
- documentation
- Loại issue
- Tài liệu
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 50/100