CentreForDigitalHumanities / CentreForDigitalHumanities/programming-in-python

Python is a bit under-equipped for statistical modeling

Aberta
#9 0 comentários 0 reações 0 responsáveis Ver no GitHub
enhancement
Linguagem predominante
Jupyter Notebook
Estrelas
1
Forks
1
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Locate the statistical modeling section in the tips and read its surrounding guidance on Python modeling. Add a note explaining the limitation of statsmodels.MixedLM for two grouping levels and the suitability of more specialized tools such as R, then verify that the note fits the section and accurately reflects the linked resources.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
python, r
Domínio
documentation
Tipo de issue
Documentação
Dificuldade
2/5
Tempo estimado
1-3 horas
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
50/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.