jointcalib
Repository for a small package for joint calibration of totals, quantiles and other metrics
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 5 DOI reference(s) in README -
✓Academic publication links
Links to: arxiv.org, wiley.com, zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.5%) to scientific vocabulary
Keywords
calibration
causal-inference
probability-samples
sampling
survey
survey-methodology
weighting
Last synced: 6 months ago
·
JSON representation
Repository
Repository for a small package for joint calibration of totals, quantiles and other metrics
Basic Info
- Host: GitHub
- Owner: ncn-foreigners
- Language: R
- Default Branch: main
- Homepage: https://ncn-foreigners.github.io/jointCalib/
- Size: 130 MB
Statistics
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 3
- Releases: 0
Topics
calibration
causal-inference
probability-samples
sampling
survey
survey-methodology
weighting
Created over 2 years ago
· Last pushed 11 months ago
Metadata Files
Readme
README.Rmd
---
output: github_document
---
[](https://github.com/ncn-foreigners/jointCalib/actions/workflows/R-CMD-check.yaml)
[](https://CRAN.R-project.org/package=jointCalib)
[](https://cran.r-project.org/package=jointCalib )
[](https://doi.org/10.5281/zenodo.8355993)
[](https://cran.r-project.org/package=jointCalib)
[](http://www.awesomeofficialstatistics.org)
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# Overview
## Details
A small package for joint calibration of totals and quantiles for probability and non-probability surveys as well as causal inference based on observational data. The package combines the following approaches:
- Deville, J. C., and Särndal, C. E. (1992). [Calibration estimators
in survey
sampling](https://www.tandfonline.com/doi/abs/10.1080/01621459.1992.10475217).
Journal of the American statistical Association, 87(418), 376-382.
- Harms, T. and Duchesne, P. (2006). [On calibration estimation for
quantiles](https://www150.statcan.gc.ca/n1/pub/12-001-x/2006001/article/9255-eng.pdf).
Survey Methodology, 32(1), 37.
- Wu, C. (2005) [Algorithms and R codes for the pseudo empirical
likelihood method in survey
sampling](https://www150.statcan.gc.ca/n1/pub/12-001-x/2005002/article/9051-eng.pdf),
Survey Methodology, 31(2), 239.
- Zhang, S., Han, P., and Wu, C. (2023) [Calibration Techniques
Encompassing Survey Sampling, Missing Data Analysis and Causal
Inference](https://onlinelibrary.wiley.com/doi/10.1111/insr.12518),
International Statistical Review 91, 165--192.
which allows to calibrate weights to known (or estimated) totals and
quantiles jointly. As an backend for calibration
[sampling](https://CRAN.R-project.org/package=sampling)
(`sampling::calib`), [laeken](https://CRAN.R-project.org/package=laeken)
(`laeken::calibWeights`),
[survey](https://CRAN.R-project.org/package=survey) (`survey::grake`) or
[ebal](https://CRAN.R-project.org/package=ebal) (`ebal::eb`) package can
be used. One can also apply empirical likelihood using codes from Wu
(2005) with support of `stats::constrOptim` as used in Zhang, Han and Wu
(2022).
| backend | method | function called |
|---------------|-------------------------------------------|---------------|
| `sampling` | `c("raking", "linear", "logit", "truncated")` | `sampling::calib` |
| `laeken` | `c("raking", "linear", "logit")` | `laeken::calibWeights` |
| `survey` | `c("raking", "linear", "logit", "sinh")` | `survey::grake` |
| `ebal` | `eb` | `ebal::eb` |
| `base` | `el` | R code and `stats::constrOptim` |
Currently supports:
- calibration of quantiles,
- calibration of quantiles and totals,
- calibration using standard calibration (i.e. Deville and Särndal, 1992), empirical likelihood and
entropy balancing method,
- covariate distribution entropy balancing for ATT and QTT (distributional entropy balancing; DEB) via the [ebal](https://CRAN.R-project.org/package=ebal) package,
- covariate distribution balancing propensity score for ATE and QTE (distributional propensity score; DPS) via the [CBPS](https://CRAN.R-project.org/package=CBPS) package.
Further plans:
- generalized calibration via `sampling::gencalib`,
- calibration for Gini and other metrics,
- ...
For details see:
- Beręsewicz M, and Szymkowiak, M. (2023). [A note on joint calibration estimators for
totals and quantiles](https://arxiv.org/abs/2308.13281), working paper (arxiv 2308.13281).
- Beręsewicz M (2023). [Survey calibration for causal inference: a simple method to balance covariate distributions](https://arxiv.org/abs/2310.11969), working paper (arxiv 2310.11969).
## Funding
Work on this package is supported by the the National Science Centre,
OPUS 22 grant no. 2020/39/B/HS4/00941.
## Installation
You can install CRAN version of the package using
```{r, eval = FALSE}
install.packages("jointCalib")
```
You can install the development version of `jointCalib` from GitHub
with:
```{r, eval=FALSE}
# install.packages("remotes")
remotes::install_github("ncn-foreigners/jointCalib")
```
Owner
- Name: ncn-foreigners
- Login: ncn-foreigners
- Kind: organization
- Location: Poland
- Repositories: 3
- Profile: https://github.com/ncn-foreigners
Project "Towards census-like statistics for foreign-born populations"
GitHub Events
Total
- Issues event: 1
- Watch event: 3
- Push event: 1
- Pull request event: 2
Last Year
- Issues event: 1
- Watch event: 3
- Push event: 1
- Pull request event: 2
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Maciej | m****z@g****m | 111 |
| Maciej Beręsewicz | B****Z | 4 |
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 5
- Total pull requests: 5
- Average time to close issues: about 16 hours
- Average time to close pull requests: about 2 hours
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.8
- Average comments per pull request: 0.0
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: about 2 hours
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- BERENZ (5)
Pull Request Authors
- BERENZ (6)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 190 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: jointCalib
A Joint Calibration of Totals and Quantiles
- Homepage: https://github.com/ncn-foreigners/jointCalib
- Documentation: http://cran.r-project.org/web/packages/jointCalib/jointCalib.pdf
- License: GPL-3
-
Latest release: 0.1.0
published over 2 years ago
Rankings
Forks count: 28.2%
Dependent packages count: 28.2%
Stargazers count: 34.9%
Dependent repos count: 36.7%
Average: 43.2%
Downloads: 87.9%
Maintainers (1)
Last synced:
6 months ago
Dependencies
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action v4.4.1 composite
- actions/checkout v3 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION
cran
- R >= 3.5.0 depends
- CBPS * imports
- MASS * imports
- ebal * imports
- laeken * imports
- mathjaxr * imports
- sampling * imports
- survey * imports
- knitr * suggests
- rmarkdown * suggests