Container for results generated by PyMARE meta-regression estimators.
Parameters:
estimator (BaseEstimator)) – The estimator used to produce the results.
dataset (Dataset)) – A Dataset instance containing the inputs to the estimator.
fe_params (numpy.ndarray of shape (p, d)) – Fixed-effect coefficients. Must be a 2-d numpy array with shape p x d,
where p is the number of predictors, and d is the number of parallel datasets
(typically 1).
fe_cov (numpy.ndarray of shape (p, p)) – The p x p inverse covariance (or precision) matrix for the fixed effects.
tau2 (None or numpy.ndarray of shape (d,) or float, optional) – A 1-d array containing the estimated tau^2 value for each parallel dataset
(or a float, for a single dataset). May be omitted by fixed-effects estimators.
Warning
When an Estimator is fitted to arrays directly using the fit method, the Results object’s
utility is limited.
Many methods will not work.
This method relies on the .dataset attribute, so the original Estimator must have
be fitted with fit_dataset, not fit.
Returns:
A dictionary with the associated heterogeneity statistics.
The keys to this dictionary are:
Q
Cochran’s Q [1].
This measure follows a chi-squared distribution, with n - k degrees of
freedom, where n is the number of studies and k is the number of regressors.
p(Q)
P values associated with the Cochran’s Q values.
I^2
The proportion of the variance in study estimates that is due to heterogeneity
instead of sampling error [2].
This measure is bounded from 0 to 100.
H
The ratio of the standard deviation of the estimated overall effect size from
a random-effects meta-analysis compared to the standard deviation from a
fixed-effect meta-analysis [2].
This method relies on the .dataset attribute, so the original Estimator must have
be fitted with fit_dataset, not fit.
Parameters:
n_perm (int, optional) – Number of permutations to generate. The actual number used may be smaller in the event
of an exact test (see below), but will never be larger.
Default = 1000.
If the number of possible permutations is smaller than n_perm, an exact test will be
conducted.
Otherwise an approximate test will be conducted by randomly shuffling the outcomes n_perm
times (or, for intercept-only models, by randomly flipping their signs).
Note that for closed-form estimators (e.g., ‘DL’ and ‘HE’), permuted datasets are
estimated in parallel.
This means that one can often set very high n_perm values (e.g., 100k) with little
performance degradation.
df – DataFrame summarizing fixed effect results.
The DataFrame will have one row for each regressor, and the following columns:
name
Name of the regressor.
estimate
The parameter estimate for the regressor.
se
The standard error of the estimate.
z-score
The z score of the estimate.
p-value
The p value the estimate.
ci_+
Lower and upper bounds of the estimate. There will be two columns, with
names based on the alpha value. For example, if alpha=0.05,
the CI columns will be "ci_0.025" and "ci_0.975".