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
Below are two references implying that the basic meta-analysis is not "generic", i.e. independent of what is used as effect measure or parameter to be combined. Referenced and citing articles provide more information (but I didn't look or download those).
The distribution, specifically the expected value, of Q statistic depends on what is used as effect size measure.
This means that this part of the code cannot be completely generic, or needs to get more information about the effect size measure (than what I have right now in my draft code, AFAIR)
Has the explicit analysis with non-central t-distribution for the standardized mean difference as effect size. This is similar to using noncentral F in anova effect size.
We might want to use noncentral t directly instead of the normal approximation in the meta-analysis literature that I looked at.
estimating random effects between study variance tau
The basic DL is biased, but not too bad in terms of MSE for many cases. However, there are a large number of methods and a few of them are recommended.
Veroniki et al 2016 has a good overview with formulas and brief comments about monte carlo results for each estimator
Veroniki, Areti Angeliki, Dan Jackson, Wolfgang Viechtbauer, Ralf Bender, Jack Bowden, Guido Knapp, Oliver Kuss, Julian PT Higgins, Dean Langan, and Georgia Salanti. 2016. “Methods to Estimate the Between-Study Variance and Its Uncertainty in Meta-Analysis.” Research Synthesis Methods 7 (1): 55–79. https://doi.org/10.1002/jrsm.1164.
There are many more recent monte carlo studies, Empirical Bayes/Paule and Mandel, and Hartung,Knapp/ Sidik, Jonkman seems to be the most recommended the meta estimate and confidence interval.
Detail: Many of the tau estimators in Veroniki et al 2016 are described as GMM, one-step, two-step, iterated and one continuously updated (IIUC).
Good estimation of between variance requires larger number of studies.
FE ci are narrower than RE ci, but ci with WLS without fixed scale are wider than RE ci in the example.
Not fixing scale accounts for some between variation, similar to RE, but in WLS we use FE weights that don't include RE between variance.
I haven't seen this yet in the meta-analysis literature, but I haven't looked at the literature with regression approaches yet.
Tipton in earlier comment using cluster robust standard errors will go in a similar direction (I guess)
(aside: I had to look up an example for fixing scale, maybe we can add an alias option cov_type="fix_scale")
Based on the two Veroniki et al articles, we need method_tau and method_ci_re options (or similarly named).
In models, we compute conf_int in the results instance, so we can use different alpha without reestimating. Does this make sense here?
We might also need several options for FE estimation (but I don't know yet which ones).
Currently I just have one function for combining effects, and additional effects variance).
But I'm not really a fan of having one function with a huge number of optional arguments as some functions in R meta-analysis.
We need something that we can extend over time, as we implement more options.
Other question:
If we want to have one consistent meta interface, then we would also need to delegate internally to regression models, e.g. WLS, maximum likelihood for RE, ...
Or we just document how to use those models for meta-analysis without writing a wrapper for them.
A very good article emphasizing the interpretation of fixed effects model as estimating a "population" average, i.e. an average treatment effect where the population is the set of studies included in the meta-analysis.
My impression is that most of the meta-analysis literature that I have looked at take the models much too literal. (FE assuming no excess dispersion or fully specified RE model.)
Rice et al article doesn't have a lot specific on inference and nothing really new there, expecially nothing explicit on using non-fixed scale to account for "excess between variation" (nothing implicit either AFAICS)
cont. with fixed scale:
I think Cochran's Q is just the analogue of Pearson's chi2 in GLM.
When scale is fixed at 1, we can use it as a test for excess variation, or excess dispersion as in Poisson. If we use it to adjust cov_params, then we cannot use it as a separate gof test anymore.
in analogy to Poisson
assume FE correctly specified, scale=1
assume mean model is correctly specified (or estimates population average), but allow for excess dispersion, HC or other robust cov_types
fully specified heterogeneity or random effects under the assumption that model is correctly specifed.
There should be a GEE version, use some correlation, heteroscedasticity as working assumption to increase asymptotic efficiency, but add robust cov_type so the "working assumption" doesn't have to be correctly specified.
standard meta-analysis looks stuck with 1 and 3 (but with a huge literature on improving small sample properties especially for 3, RE)
edit
Note, in the simple case we are just regression on a constant without other information about clustering, correlation, ...
AFAICS, In this case HC is just non-fixed scale, i.e. there is no real correlation between x and residual (variance).
(my last changes to the comment were not properly saved)
One of the most recommended methods for confidence interval is HKSJ.
AFAICS,, this just adds the scale back into the estimate of the parameter/mean effect variance estimate.
I don't have HSKJ conf_int yet, but directly computing the HK adjustments it is the same as the wls scale (without fixed scale cov_type)
Hartung/Knapp and Sidik/Jonkman 2001 and 2002, but they seem to derive it from scratch
(SJ looks similar to the proof of t-test of a parameter is WLS)
AFAICS, HKSJ (i.e. not fixing scale=1) is more robust to problems in estimating RE between variance and to variance misspecification, and so it does better in many cases in Monte Carlo studies.
edit
once I know what to search for, then there often is already something
more searching (I didn't look at any of them), meta-analysis and GLM
maybe we just need recipes and wrappers for using the models for meta-analysis (except for small sample corrections in some cases)
effect sizes for proportions 2 by 2, 2 binomial random variables (e.g. treatment and control)
independent: log odds-ratio and log risk ratio assumed to be approximately normal in each study, e.g. Hartung and Knapp 2001
dependent/paired: Mantel Hanzel (measure of off-diagonal counts as in conditional Logit), reference ?
another for independent is risk difference with transformation to normality, reference for use in meta-analysis ?
Plan is to make functions that duplicates the computation from the corresponding tests in proportions and contingency tables.
Eventually we should merge all the different implementation of the same thing (but I don't want to think about that now.)
estimating combined mean effect size with confidence interval and hypothesis tests: HK point out that the same analysis applies to RE and FE except for the inclusion of tau in weights.
diagnostic and estimates of between variance tau: this is partially separate, e.g. my current code doesn't provide information and hypothesis tests or confidence intervals for Q/tau/... Those are mainly computed to get the RE variance adjustment for weights.
Much of this meta-analysis assumes weights as fixed, true variance in each study known or asymptotic (number of observations in each study becomes large) even when they talk about "exact" statistics for Q (measure of between dispersion), i.e. asymptotically chisquare.
That's the same as assuming "known"/asymptotic variances in WLS or known covariances in GLS.
In small studies there is the small sample distribution o Q can differ considerably from chisquare, and variances are noisy.
Cochran seems to be using an F distribution and degrees of freedom correction (based on very superficial skimming).
This sounds similar to Welch anova with F distribution and degrees of freedom correction for the heterogeneity in variance. Setup in anova is different, but similar oneway structure.
I ignore small sample adjustments for now. But, I think, approaches with more robustness like HKSJ makes the small sample problems less severe.
My impression is that Hoaglin would like to get "really (approximately) exact" methods but still assuming correct specification, instead of robustness to misspecification.
another "weird" observation (similar pattern but I don't know if the connection can be exploited)
Additive random effect looks similar to the models with additive measurement errors, except in the main version of measurement error, we subtract the noise variance. The other version of measurement errors adds it, IIRC. (I didn't look in details at the second interpretation/version of measurement errors.)
In RE meta-analysis we estimate RE variance tau across studies/labs. I didn't look at settings like repeat measurements where we can estimate the measurement error.
(maybe:
Interpret RE as coming from an omitted variable, so our effect combines true effect and omitted variable effect. The omitted variable adds noise to the true effect.
In RE, mixed effects analysis, the "true" effect that is estimated is the random variable, i.e. we estimate combined effect with omitted variable, so the true effect is random.
y_i = mu + e_i + u_i, var_u is assumed known var(y_i - mu) = var_e + var_u
then, estimate mu versus estimate combined (mu + e_i)
assume E(e_i) = 0 (unconditional effect of omitted variable is 0)
Fixed/common effect: y_i = mu + u_i with var_u known (fixed scale) or unknown (estimated scale)
)
(continued)
The currently implemented DerSimonian and Laird estimator of tau is a one step estimator.
I have now also Paule and Mandel for estimating tau which is an iterated estimator. not verified yet
My guess, based on the equations, is that PM iterates until scale==1, i.e. it sets q or pearson_chi2 equal to k-1 the (asymptotic) expected value for it. Then pearson_chi2 / (k - 1) == 1 k - 1 should be df_resid in simple oneway model.
Difference between scale and tau is that tau is additive and scale is multiplicative.
A guess: HKSJ standard errors and confidence interval at weights of PM should be the same as fixed scale estimator because scale = 1, i.e. HKSJ adjustment doesn't do anything in that case.
Meta-analysis here is just a between estimator in panel data, but we are starting with already given summary statistics of the cross-sectional units or clusters.
However, compared to the plain panel data between estimator, within sigma can differ, i.e. differences in variance across cluster means don't come only from the cluster sample size.
(e.g. GLM settings where variance depends on mean, or differences in variance of standardized mean difference effect size across cluster)
detail: convergence tolerance for tau PM
When using defaults, metafor agrees with mine only at a few decimals, need to increase tol to get better agreement, e.g.
example is first dataset case in Kacker 2004 in Metrologia (datasets in appendix)
convergence criteria:
I currently use objective function (root close to zero) in PM, and change in parameter in general method of moment iteration.
metafor rma uses change in parameter for ML, REML,
uses uniroottol for PM, depends on what uniroot is doing.
test
character string specifying how test statistics and confidence intervals for the
fixed effects should be computed. By default (test="z"), Wald-type tests and
CIs are obtained, which are based on a standard normal distribution. When
test="knha", the method by Knapp and Hartung (2003) is used for adjusting
test statistics and confidence intervals. See ‘Details’.
"knha" also changes the distribution from normal/chisquare to t/F
I want to split those two, add use_t and either scale or cov_type or both. i.e. either the pattern in OLS or in GLM.
currently I prefere scale="wls", and users can choose scale=1., and set use_t=True as default
We could add cov_type, when we add cluster robust standard errors, but I haven't read the articles yet. In that case we just delegate to GLM or WLS to handle the cov_types, after estimating between variance tau.
namings/terminology:
I'm thinking of making some of the results attributes bilingual, e.g q_stat as alias for pearson_chi2, and in other cases add bilingual explanations in docstrings.
e.g. scale="wls" could also be scale='hksj' or just 'hk'
I think we can use GLM family Binomial with identity, logit and log link to handle difference in proportion, odds ratio and risk ratio in this case.
We can use the fixed point for pearson_chi2 / df_resid = 1 to compute var_between = tau2.
I guess this will replicate using log versions of the 2-proportion statistic as effect size.
add a simple function that returns a GLM model or results instance based on optimize version a few comments ago
another design question
Do we want full meta-analysis "model" that combines different results, or just a basic function and let the user combine information.
e.g. currently we have summary table that combines info about individual samples including normal confint with the meta-analysis results.
The problem is that we need extra arguments if we just want to collect different pieces of info that are not really necessary for the basic meta-analysis combine_effects computation.
I haven't include Mantel-Hanzsel in my meta PR (and didn't read specific articles yet)
However, MH fixed effect can be computed with StratifiedTable at very high agreement with R meta. I haven't looked at the details what they do for MH random effects.
The latest SPSS 28 includes meta-analysis.
The algorithm pdf file has sections on it.
It looks like there are some things that we might also add, e.g. we don't have much in terms of diagnostic tests.
Activity
josef-pkt commentedon Mar 21, 2020
Hedges, Larry V. 2016. “Distribution Theory for Glass’s Estimator of Effect Size and Related Estimators:” Journal of Educational Statistics, November. https://doi.org/10.3102/10769986006002107.
Has the explicit analysis with non-central t-distribution for the standardized mean difference as effect size. This is similar to using noncentral F in anova effect size.
We might want to use noncentral t directly instead of the normal approximation in the meta-analysis literature that I looked at.
Steiger and related references might have more on it. But, so far I only looked at the anova case for #6526
Steiger, James H. 2004. “Beyond the F Test: Effect Size Confidence Intervals and Tests of Close Fit in the Analysis of Variance and Contrast Analysis.” Psychological Methods 9 (2): 164–82. https://doi.org/10.1037/1082-989X.9.2.164.
josef-pkt commentedon Mar 30, 2020
using cluster robust standard errors
erratum has a link to northwestern that doesn't exist anymore
Tipton has R and Stata packages
https://www.ipr.northwestern.edu/who-we-are/faculty-experts/tipton.html
https://www.bethtipton.com/meta-analysis
Hedges, Larry V., Elizabeth Tipton, and Matthew C. Johnson. 2010a. “Erratum: Robust Variance Estimation in Meta-Regression with Dependent Effect Size Estimates.” Research Synthesis Methods 1 (2): 164–65. https://doi.org/10.1002/jrsm.17.
———. 2010b. “Robust Variance Estimation in Meta-Regression with Dependent Effect Size Estimates.” Research Synthesis Methods 1 (1): 39–65. https://doi.org/10.1002/jrsm.5.
josef-pkt commentedon Apr 1, 2020
estimating random effects between study variance
tauThe basic DL is biased, but not too bad in terms of MSE for many cases. However, there are a large number of methods and a few of them are recommended.
Veroniki et al 2016 has a good overview with formulas and brief comments about monte carlo results for each estimator
Veroniki, Areti Angeliki, Dan Jackson, Wolfgang Viechtbauer, Ralf Bender, Jack Bowden, Guido Knapp, Oliver Kuss, Julian PT Higgins, Dean Langan, and Georgia Salanti. 2016. “Methods to Estimate the Between-Study Variance and Its Uncertainty in Meta-Analysis.” Research Synthesis Methods 7 (1): 55–79. https://doi.org/10.1002/jrsm.1164.
There are many more recent monte carlo studies, Empirical Bayes/Paule and Mandel, and Hartung,Knapp/ Sidik, Jonkman seems to be the most recommended the meta estimate and confidence interval.
Detail: Many of the tau estimators in Veroniki et al 2016 are described as GMM, one-step, two-step, iterated and one continuously updated (IIUC).
Good estimation of between variance requires larger number of studies.
josef-pkt commentedon Apr 2, 2020
standardized mean difference example continued from #1575 (comment)
res_wls = sm.WLS(eff, np.ones(len(eff)), weights=1/var_eff).fit(cov_type="fixed_scale", cov_kwds={'scale':1})replicates FE meta estimate, e.g.
FE ci are narrower than RE ci, but ci with WLS without fixed scale are wider than RE ci in the example.
Not fixing scale accounts for some between variation, similar to RE, but in WLS we use FE weights that don't include RE between variance.
I haven't seen this yet in the meta-analysis literature, but I haven't looked at the literature with regression approaches yet.
Tipton in earlier comment using cluster robust standard errors will go in a similar direction (I guess)
(aside: I had to look up an example for fixing scale, maybe we can add an alias option
cov_type="fix_scale")josef-pkt commentedon Apr 2, 2020
imprecise replication of RE:
when I add the estimate of tau,
res3.tau2to the weights in WLS, then results match around 1e-5If I don't use fixed scale, then these wls re ci become a bit wider, by around 8% of mean effect
josef-pkt commentedon Apr 3, 2020
design/options
Based on the two Veroniki et al articles, we need
method_tauandmethod_ci_reoptions (or similarly named).In models, we compute conf_int in the results instance, so we can use different alpha without reestimating. Does this make sense here?
We might also need several options for FE estimation (but I don't know yet which ones).
Currently I just have one function for combining effects, and additional effects variance).
But I'm not really a fan of having one function with a huge number of optional arguments as some functions in R meta-analysis.
We need something that we can extend over time, as we implement more options.
Other question:
If we want to have one consistent
metainterface, then we would also need to delegate internally to regression models, e.g. WLS, maximum likelihood for RE, ...Or we just document how to use those models for meta-analysis without writing a wrapper for them.
josef-pkt commentedon Apr 3, 2020
Rice, Kenneth, Julian P. T. Higgins, and Thomas Lumley. 2018. “A Re-Evaluation of Fixed Effect(s) Meta-Analysis.” Journal of the Royal Statistical Society: Series A (Statistics in Society) 181 (1): 205–27. https://doi.org/10.1111/rssa.12275.
A very good article emphasizing the interpretation of fixed effects model as estimating a "population" average, i.e. an average treatment effect where the population is the set of studies included in the meta-analysis.
My impression is that most of the meta-analysis literature that I have looked at take the models much too literal. (FE assuming no excess dispersion or fully specified RE model.)
Rice et al article doesn't have a lot specific on inference and nothing really new there, expecially nothing explicit on using non-fixed scale to account for "excess between variation" (nothing implicit either AFAICS)
cont. with fixed scale:
I think Cochran's Q is just the analogue of Pearson's chi2 in GLM.
When scale is fixed at 1, we can use it as a test for excess variation, or excess dispersion as in Poisson. If we use it to adjust cov_params, then we cannot use it as a separate gof test anymore.
in analogy to Poisson
standard meta-analysis looks stuck with 1 and 3 (but with a huge literature on improving small sample properties especially for 3, RE)
edit
Note, in the simple case we are just regression on a constant without other information about clustering, correlation, ...
AFAICS, In this case HC is just non-fixed scale, i.e. there is no real correlation between x and residual (variance).
josef-pkt commentedon Apr 3, 2020
(my last changes to the comment were not properly saved)
One of the most recommended methods for confidence interval is HKSJ.
AFAICS,, this just adds the scale back into the estimate of the parameter/mean effect variance estimate.
I don't have HSKJ conf_int yet, but directly computing the HK adjustments it is the same as the wls scale (without fixed scale cov_type)
Hartung/Knapp and Sidik/Jonkman 2001 and 2002, but they seem to derive it from scratch
(SJ looks similar to the proof of t-test of a parameter is WLS)
AFAICS, HKSJ (i.e. not fixing scale=1) is more robust to problems in estimating RE between variance and to variance misspecification, and so it does better in many cases in Monte Carlo studies.
edit
once I know what to search for, then there often is already something
Aert, Robbie C. M. van, and Dan Jackson. 2019. “A New Justification of the Hartung-Knapp Method for Random-Effects Meta-Analysis Based on Weighted Least Squares Regression.” Research Synthesis Methods 10 (4): 515–27. https://doi.org/10.1002/jrsm.1356.
points out equivalence to WLS with and without fixed scale.
josef-pkt commentedon Apr 3, 2020
more searching (I didn't look at any of them), meta-analysis and GLM
maybe we just need recipes and wrappers for using the models for meta-analysis (except for small sample corrections in some cases)
Aitkin, Murray. 1999. “Meta-Analysis by Random Effect Modelling in Generalized Linear Models.” Statistics in Medicine 18 (17–18): 2343–51. https://doi.org/10.1002/(SICI)1097-0258(19990915/30)18:17/18<2343::AID-SIM260>3.0.CO;2-3.
Dias, Sofia, Alex J. Sutton, A. E. Ades, and Nicky J. Welton. 2013. “Evidence Synthesis for Decision Making 2: A Generalized Linear Modeling Framework for Pairwise and Network Meta-Analysis of Randomized Controlled Trials.” Medical Decision Making 33 (5): 607–17. https://doi.org/10.1177/0272989X12458724.
Platt, Robert W., Brian G. Leroux, and Norman Breslow. 1999. “Generalized Linear Mixed Models for Meta-Analysis.” Statistics in Medicine 18 (6): 643–54. https://doi.org/10.1002/(SICI)1097-0258(19990330)18:6<643::AID-SIM76>3.0.CO;2-M.
Sheu, Ching-Fan, and Sawako Suzuki. 2001. “Meta-Analysis Using Linear Mixed Models.” Behavior Research Methods, Instruments, & Computers 33 (2): 102–7. https://doi.org/10.3758/BF03195354.
josef-pkt commentedon Apr 4, 2020
effect sizes for proportions 2 by 2, 2 binomial random variables (e.g. treatment and control)
independent: log odds-ratio and log risk ratio assumed to be approximately normal in each study, e.g. Hartung and Knapp 2001
dependent/paired: Mantel Hanzel (measure of off-diagonal counts as in conditional Logit), reference ?
another for independent is risk difference with transformation to normality, reference for use in meta-analysis ?
Plan is to make functions that duplicates the computation from the corresponding tests in proportions and contingency tables.
Eventually we should merge all the different implementation of the same thing (but I don't want to think about that now.)
Hartung, Joachim, and Guido Knapp. 2001. “A Refined Method for the Meta-Analysis of Controlled Clinical Trials with Binary Outcome.” Statistics in Medicine 20 (24): 3875–89. https://doi.org/10.1002/sim.1009.
related issue:
josef-pkt commentedon Apr 4, 2020
partial skimming of original cochran 1954 and a recent critique of meta-analysis literature about Q
Hoaglin, David C. 2016. “Misunderstandings about Q and ‘Cochran’s Q Test’’ in Meta-Analysis.’” Statistics in Medicine 35 (4): 485–95. https://doi.org/10.1002/sim.6632.
Cochran, William G. 1954. “The Combination of Estimates from Different Experiments.” Biometrics 10 (1): 101–29. https://doi.org/10.2307/3001666.
Much of this meta-analysis assumes weights as fixed, true variance in each study known or asymptotic (number of observations in each study becomes large) even when they talk about "exact" statistics for Q (measure of between dispersion), i.e. asymptotically chisquare.
That's the same as assuming "known"/asymptotic variances in WLS or known covariances in GLS.
In small studies there is the small sample distribution o
Qcan differ considerably from chisquare, and variances are noisy.Cochran seems to be using an F distribution and degrees of freedom correction (based on very superficial skimming).
This sounds similar to Welch anova with F distribution and degrees of freedom correction for the heterogeneity in variance. Setup in anova is different, but similar oneway structure.
I ignore small sample adjustments for now. But, I think, approaches with more robustness like HKSJ makes the small sample problems less severe.
My impression is that Hoaglin would like to get "really (approximately) exact" methods but still assuming correct specification, instead of robustness to misspecification.
josef-pkt commentedon Apr 5, 2020
another "weird" observation (similar pattern but I don't know if the connection can be exploited)
Additive random effect looks similar to the models with additive measurement errors, except in the main version of measurement error, we subtract the noise variance. The other version of measurement errors adds it, IIRC. (I didn't look in details at the second interpretation/version of measurement errors.)
In RE meta-analysis we estimate RE variance tau across studies/labs. I didn't look at settings like repeat measurements where we can estimate the measurement error.
(maybe:
Interpret RE as coming from an omitted variable, so our effect combines true effect and omitted variable effect. The omitted variable adds noise to the true effect.
In RE, mixed effects analysis, the "true" effect that is estimated is the random variable, i.e. we estimate combined effect with omitted variable, so the true effect is random.
y_i = mu + e_i + u_i, var_u is assumed known var(y_i - mu) = var_e + var_u
then, estimate mu versus estimate combined (mu + e_i)
assume E(e_i) = 0 (unconditional effect of omitted variable is 0)
Fixed/common effect: y_i = mu + u_i with var_u known (fixed scale) or unknown (estimated scale)
)
josef-pkt commentedon Apr 6, 2020
a quick check with GLM
results are the same as WLS, with some extras like pearson_chi2
qis pearson_chi2, but based on the initial FE estimate, not recomputed are RE weightswe have some "under dispersion" with scale=0.73 in RE model as in HKSJ
it's great when everything just works
josef-pkt commentedon Apr 6, 2020
(continued)
The currently implemented DerSimonian and Laird estimator of tau is a one step estimator.
I have now also Paule and Mandel for estimating tau which is an iterated estimator. not verified yet
My guess, based on the equations, is that PM iterates until
scale==1, i.e. it setsqorpearson_chi2equal tok-1the (asymptotic) expected value for it. Thenpearson_chi2 / (k - 1) == 1k - 1should bedf_residin simple oneway model.edit confirmed
(end edit)
Difference between scale and tau is that tau is additive and scale is multiplicative.
A guess: HKSJ standard errors and confidence interval at weights of PM should be the same as fixed scale estimator because scale = 1, i.e. HKSJ adjustment doesn't do anything in that case.
josef-pkt commentedon Apr 6, 2020
Another connection:
Meta-analysis here is just a between estimator in panel data, but we are starting with already given summary statistics of the cross-sectional units or clusters.
However, compared to the plain panel data between estimator, within sigma can differ, i.e. differences in variance across cluster means don't come only from the cluster sample size.
(e.g. GLM settings where variance depends on mean, or differences in variance of standardized mean difference effect size across cluster)
josef-pkt commentedon Apr 6, 2020
estimating tau2 PM through GLM, fixed point (or min) for scale = 1
josef-pkt commentedon Apr 7, 2020
detail: convergence tolerance for tau PM
When using defaults, metafor agrees with mine only at a few decimals, need to increase tol to get better agreement, e.g.
mine
tau2_PM, converged = _fit_tau_iterative(eff1, var_eff1, tau2_start=0.1, atol=1e-8)using R metafor
metafor tau2PM = 0.70541914797876093 at default tol,
0.70539530922424787 at tol=1e-9
example is first dataset case in Kacker 2004 in Metrologia (datasets in appendix)
convergence criteria:
I currently use objective function (root close to zero) in PM, and change in parameter in general method of moment iteration.
metafor rma uses change in parameter for ML, REML,
uses
uniroottolfor PM, depends on what uniroot is doing.josef-pkt commentedon Apr 7, 2020
method options
metafor seems to have either "z" or "hksj"
"knha" also changes the distribution from normal/chisquare to t/F
I want to split those two, add
use_tand eitherscaleorcov_typeor both. i.e. either the pattern in OLS or in GLM.currently I prefere
scale="wls", and users can choosescale=1., and setuse_t=Trueas defaultWe could add cov_type, when we add cluster robust standard errors, but I haven't read the articles yet. In that case we just delegate to GLM or WLS to handle the cov_types, after estimating between variance tau.
namings/terminology:
I'm thinking of making some of the results attributes bilingual, e.g
q_statas alias forpearson_chi2, and in other cases add bilingual explanations in docstrings.e.g.
scale="wls"could also bescale='hksj'or just 'hk'josef-pkt commentedon Apr 8, 2020
ENH: still to check
I think we can use GLM family Binomial with identity, logit and log link to handle difference in proportion, odds ratio and risk ratio in this case.
We can use the fixed point for
pearson_chi2 / df_resid = 1to compute var_between = tau2.I guess this will replicate using log versions of the 2-proportion statistic as effect size.
add a simple function that returns a GLM model or results instance based on optimize version a few comments ago
josef-pkt commentedon Apr 8, 2020
another design question
Do we want full meta-analysis "model" that combines different results, or just a basic function and let the user combine information.
e.g. currently we have summary table that combines info about individual samples including normal confint with the meta-analysis results.
The problem is that we need extra arguments if we just want to collect different pieces of info that are not really necessary for the basic meta-analysis combine_effects computation.
josef-pkt commentedon Apr 27, 2020
I haven't include Mantel-Hanzsel in my meta PR (and didn't read specific articles yet)
However, MH fixed effect can be computed with
StratifiedTableat very high agreement with Rmeta. I haven't looked at the details what they do for MH random effects.example is from unit test against R meta metabin
josef-pkt commentedon Jun 8, 2020
another R package with some meta-analysis functions, e.g. paule-mander, DL, ..., for interlab studies
https://cran.r-project.org/web/packages/metRology/
josef-pkt commentedon Oct 16, 2021
The latest SPSS 28 includes meta-analysis.
The algorithm pdf file has sections on it.
It looks like there are some things that we might also add, e.g. we don't have much in terms of diagnostic tests.