This repository contains methods for aggregating statistics.
examplescontains examplesstandalonecontains examples that show how fedstats can be used in general.flamecontains examples that show how fedstats can be used within FLAME.
fedstatscontains the code.aggregationmodule is used for aggregation methods.modelsstatistical models that can be used with the aggregators.
testscontains tests.
-
Aggregation Methods:
- Meta-analysis aggregation: weighting local results by their variance (also allows the calculation of confidence intervals)
- Average aggregation: weighting local results by their number of samples
- Aggregation of Generalized Linear Models
- Aggregation of p values using Fisher's method
-
Models
LocalLinearRegressionwraps a standard linear regression model from statsmodels for direct use with the aggregators.LocalFisherScoringimplements generalized linear models with Fisher scoring.
- The repo uses poetry for dependency management. Assuming you have installed poetry: Clone the repo and type
poetry install. - Activate the environment with
poetry env activate. - Testing is done with pytest:
poetry run pytest tests/.