You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically it is a way to combine multiple statistic samples by a similar factor. I am doing brief research on this for someone but I would like to start an implementation. The only problem is I am not good with creating the classes so it will be an hassle to whoever converts it :(.
We may need an section on Effect size measurements
Which include
*Correlation (pearson) already in statsmodels
*Coefficient of determination (R^2)
*Eta-squared
*Cohen F^2 (I think statsmodel has this)
*Hedges's g
In these cases classes are not so important. In contrast to the estimation models, most statsmodels.stats is based on functions. Some classes are just collections of functions to keep things together and optimize on recalculating intermediate results.
Unit tests are always important.
A collection of effectsize functions would be very useful. It's on my wishlist, but I didn't have the time in my latest round of working on this.
I don't know much about what's used in Meta analysis.
one case I had to read up on, is combining independent test results or p-values for scipy/scipy#3092
A list of function, both an overview and actual implementation would be very useful. I would gladly review it, but I won't be working on new code for stats myself for at least the next few months.
Random effects meta analysis can be conducted using linear mixed effects models, and the results are often displayed using forest plots. Both are in the works...
The PR's I mentioned are for statsmodels. Mixed models is #1398, dot plots (forest plots) is #1293.
I don't have any immediate plans to implement specialized meta analysis techniques. But some of the standard meta-analysis techniques are direct applications of more general tools.
When the mixed models PR is more mature, I will try to put a notebook together illustrating meta-analysis using this and other statsmodels functionality.
I finally looked a bit at Meta-analysis but just to get a bit of an overview.
I think it wouldn't be difficult to add some basic functions and plots for the statistical part of meta-analysis, e.g. weighted averaging and typical plots.
Do we need more features in the existing models so they can be reused for meta-analysis, e.g. weights in more models and stats functions?
The other issues is whether or where we need to improve our results to make including them in meta-analysis easier, for example reporting effect sizes #5896
one detail (while semi-randomly skimming some parts)
It seems that when using WLS for variance weighted regression combination needs scale=1
"lm will then estimate sigma^2 which can be seen from the ANOVA table to be sigma^2 = 1:14. With
meta-regression, this sigma^2 should set to 1.
"
Chen, Ding-Geng, and Karl E. Peace. 2013. Applied Meta-Analysis with R. Chapman & Hall/CRC Biostatistics Series. Boca Raton: CRC Press/Taylor & Francis Group.
book looks good, with both explicit computation and using R packages, and formulas/equations
(based on briefly skimming some parts)
We might need a wrapper function or class to get all the information into the results class if we want to combine original estimates and results from combination for some results tables, plots, ...
It's not clear to me yet where backtransform to original measures should go. (analogy to eform PR?)
As far as I currently understand, MixedLM cannot be used to replicate meta-analysis random effects estimation because MixedLM doesn't allow for var_weights
Activity
josef-pkt commentedon Apr 8, 2014
In these cases classes are not so important. In contrast to the estimation models, most statsmodels.stats is based on functions. Some classes are just collections of functions to keep things together and optimize on recalculating intermediate results.
Unit tests are always important.
A collection of effectsize functions would be very useful. It's on my wishlist, but I didn't have the time in my latest round of working on this.
I don't know much about what's used in Meta analysis.
one case I had to read up on, is combining independent test results or p-values for
scipy/scipy#3092
A list of function, both an overview and actual implementation would be very useful. I would gladly review it, but I won't be working on new code for
statsmyself for at least the next few months.kshedden commentedon Apr 8, 2014
Random effects meta analysis can be conducted using linear mixed effects models, and the results are often displayed using forest plots. Both are in the works...
An article for reference:
http://www.bmj.com/content/342/bmj.d549
ccsv commentedon Apr 8, 2014
@kshedden
Thanks for the BMJ paper.
I am guessing this is going to be in Scikit-learn then? If so I will close the thread.
But the statistician I work with gave me this http://cran.r-project.org/web/packages/mmeta/mmeta.pdf new R package on multivariate meta analysis with this paper http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3683108/
kshedden commentedon Apr 8, 2014
The PR's I mentioned are for statsmodels. Mixed models is #1398, dot plots (forest plots) is #1293.
I don't have any immediate plans to implement specialized meta analysis techniques. But some of the standard meta-analysis techniques are direct applications of more general tools.
When the mixed models PR is more mature, I will try to put a notebook together illustrating meta-analysis using this and other statsmodels functionality.
josef-pkt commentedon Feb 6, 2020
I finally looked a bit at Meta-analysis but just to get a bit of an overview.
I think it wouldn't be difficult to add some basic functions and plots for the statistical part of meta-analysis, e.g. weighted averaging and typical plots.
Do we need more features in the existing models so they can be reused for meta-analysis, e.g.
weightsin more models andstatsfunctions?The other issues is whether or where we need to improve our
resultsto make including them in meta-analysis easier, for example reporting effect sizes #5896[-]FEAT: Meta analysis[/-][+]ENH: Meta analysis[/+]josef-pkt commentedon Feb 6, 2020
some results fro a github search
A very new package (pre-alpha)
https://github.com/neurostuff/PyMARE
(PR with effect sizes using Sympy)
https://github.com/AuroreBussalb/meta-analysis-statistical-tools/blob/master/source_assess_treatment_efficacy/meta_analysis/perform_meta_analysis.py
https://github.com/krisbitney/meta-analysis (no license)
https://github.com/astrophys/meta-analysis_and_p-values someone figuring out what this is
There might be a few more older abandoned github repos.
There are also python packages that use R through rpy2 using e.g. metafor. Those are GPL
josef-pkt commentedon Feb 7, 2020
one detail (while semi-randomly skimming some parts)
It seems that when using WLS for variance weighted regression combination needs scale=1
"lm will then estimate sigma^2 which can be seen from the ANOVA table to be sigma^2 = 1:14. With
meta-regression, this sigma^2 should set to 1.
"
Chen, Ding-Geng, and Karl E. Peace. 2013. Applied Meta-Analysis with R. Chapman & Hall/CRC Biostatistics Series. Boca Raton: CRC Press/Taylor & Francis Group.
book looks good, with both explicit computation and using R packages, and formulas/equations
(based on briefly skimming some parts)
josef-pkt commentedon Feb 7, 2020
parking a first draft for the simple case
(I just wanted to see what we need for effect sizes)
Replicates an example using R
metapackage in "Applied Meta-Analysis with R" bookjosef-pkt commentedon Feb 9, 2020
Design:
Combining effect sizes seems to be the same for different effect size measures, except for additional back transformation to normality.
So we can split into effect size computation and into combining effect estimates
We might need a wrapper function or class to get all the information into the results class if we want to combine original estimates and results from combination for some results tables, plots, ...
It's not clear to me yet where backtransform to original measures should go. (analogy to
eformPR?)josef-pkt commentedon Feb 27, 2020
Stata 16 has new meta-analysis
https://www.stata.com/bookstore/meta-analysis-reference-manual/
for mean and proportion, and regression
josef-pkt commentedon Apr 2, 2020
As far as I currently understand, MixedLM cannot be used to replicate meta-analysis random effects estimation because MixedLM doesn't allow for
var_weights