MatchThem

Matching and Weighting Multiply Imputed Datasets

https://github.com/farhadpishgar/matchthem

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.0%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Matching and Weighting Multiply Imputed Datasets

Basic Info
  • Host: GitHub
  • Owner: FarhadPishgar
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 2.02 MB
Statistics
  • Stars: 19
  • Watchers: 4
  • Forks: 3
  • Open Issues: 12
  • Releases: 2
Created almost 7 years ago · Last pushed almost 2 years ago
Metadata Files
Readme Changelog

README.md

MatchThem

Matching and Weighting Multiply Imputed Datasets

Introduction

One of the significant challenges in matching procedures is the occurrence of missing data on the covariates. Matching involves comparing the values of covariates for units in control and treated subgroups, or relying on predictions from a logistic regression model. When there are missing values in the covariates within the model, it becomes impossible to make a valid comparison or generate accurate predictions for that unit. To tackle this issue, several solutions have been proposed, including complete-case analysis. However, these approaches have their flaws and limitations. As a result, the adoption of algorithms for multiply imputing the missing data is gaining popularity as an alternative.

The mice and Amelia packages are recognized statistical tools for imputing missing data within the R. In combination with these packages, the MatchThem package streamlines the matching and weighting processes for multiply imputed datasets. It facilitates the credible implementation of matching and weighting approaches and methods in practical applications.

Installation

The MatchThem package can be installed from the Comprehensive R Archive Network (CRAN) repository:

r install.packages("MatchThem")

And, the latest version of the package can be installed from GitHub:

r devtools::install_github(repo = "FarhadPishgar/MatchThem")

Suggested Workflow

Implementing algorithms for multiple imputation of missing data, as well as the matching or weighting procedures, may appear complex at first. To simplify this process, a suggested workflow has been designed, consisting of five steps. For more detailed information, please refer to the package's cheat sheet or vignette.

  1. Multiply Imputing of Missing Data in the Dataset: mice and Amelia packages are recommended for performing multiple imputation of missing data in the dataset.
  2. Matching or Weighting the Multiply Imputed Datasets: The matching procedure for selecting matched units from the control and treated subgroups of each imputed dataset or the weighting procedure can be accomplished using the matchthem() or weightthem() functions provided by the MatchThem package.
  3. Assessing Balance on Matched or Weighted Datasets: To evaluate the balance of all covariates in the multiply imputed datasets after matching or weighting, the cobalt package can be employed. It provides tools and functions specifically designed for assessing the extent of balance.
  4. Analyzing the Matched or Weighted Datasets: To estimate causal effects in each matched or weighted dataset, the with() function from the MatchThem package should be utilized. This function provides the necessary tools for conducting the analysis on the datasets.
  5. Pooling the Causal Effect Estimates: To combine the causal effect estimates obtained from analyzing each dataset, the pool() function from the MatchThem package should be employed. This function facilitates the pooling of the estimates to obtain an overall estimate of the causal effects.

Acknowledgments

The logo for this package, a trip to the Arctic, was designed by Max Josino. You can view and explore more of his work on his website and Dribble profile. We sincerely thank Max Josino for his kind contribution. This package relies on the functionality provided by the mice, MatchIt, and WeightIt packages.

Authors

GitHub Events

Total
  • Issues event: 3
  • Watch event: 5
  • Push event: 1
  • Pull request event: 2
  • Fork event: 1
Last Year
  • Issues event: 3
  • Watch event: 5
  • Push event: 1
  • Pull request event: 2
  • Fork event: 1

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 311
  • Total Committers: 4
  • Avg Commits per committer: 77.75
  • Development Distribution Score (DDS): 0.119
Past Year
  • Commits: 13
  • Committers: 1
  • Avg Commits per committer: 13.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Farhad Pishgar f****r@g****m 274
Farhad Pishgar F****r@G****m 23
Noah Greifer n****r@g****m 11
Noah Greifer n****r@N****l 3

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 15
  • Total pull requests: 7
  • Average time to close issues: 12 days
  • Average time to close pull requests: 6 months
  • Total issue authors: 14
  • Total pull request authors: 1
  • Average comments per issue: 0.93
  • Average comments per pull request: 0.0
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 3
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 3
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • markdanese (2)
  • lucavalery (1)
  • gab-pr (1)
  • johamunoz (1)
  • LudovicoAmbrosi (1)
  • go-bayes (1)
  • andrewmacd (1)
  • TomArriaza (1)
  • ASKurz (1)
  • linem7 (1)
  • akarito (1)
  • janickweberpals (1)
  • cjdbarlow (1)
  • ABorakati (1)
Pull Request Authors
  • ngreifer (10)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 1,211 last-month
  • Total docker downloads: 42,005
  • Total dependent packages: 1
  • Total dependent repositories: 2
  • Total versions: 9
  • Total maintainers: 1
cran.r-project.org: MatchThem

Matching and Weighting Multiply Imputed Datasets

  • Versions: 9
  • Dependent Packages: 1
  • Dependent Repositories: 2
  • Downloads: 1,211 Last month
  • Docker Downloads: 42,005
Rankings
Docker downloads count: 0.6%
Downloads: 10.2%
Average: 13.6%
Stargazers count: 16.5%
Forks count: 17.0%
Dependent packages count: 18.1%
Dependent repos count: 19.2%
Maintainers (1)
Last synced: 12 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.6.0 depends
  • MatchIt >= 4.0.0 imports
  • WeightIt * imports
  • mice * imports
  • rlang * imports
  • survey * imports
  • Amelia * suggests
  • R.rsp * suggests
  • cobalt >= 4.0.0 suggests