22 questions
1
vote
1
answer
49
views
Stratified sampling based on multiple predictors in R
I have a dataset with two groups of people: vaccinated and unvaccinated. In the vaccinated group, each row represents a unique ID with a corresponding unique T0. In the unvaccinated group, each ID may ...
0
votes
0
answers
25
views
error in matchit if option ratio > 1 is included - MatchIt package R
I need to do a matching on data to have it balanced for the two groups defined by a variable according to certain variables. I want to do a 1:2 matching.
I used this code a few months ago and it ...
-1
votes
1
answer
28
views
Am I following instructions correctly for this matching process using MatchIt? [closed]
I'm supposed to do the following:
Exact match on HF
0.005 caliper for the logit propensity score
greedy match using Mahalanobis distance utilizing the logit of the propensity score and continuous ...
1
vote
1
answer
63
views
Firth's logistic regression with CBPS
I'm fitting a logistic model after using both multiple imputation and covariate balancing. With standard logistic regression, the basic structure of my code (which works properly) looks something like ...
2
votes
0
answers
59
views
Matching only unique participants
I am having trouble matching my historical cohort to a study cohort in R studio.
Objective: Get a match to every patient in my study cohort using the historical cohort.
I want each patient in the ...
0
votes
1
answer
37
views
Propensity density score with MatchIt package -- how to bind rows when we have lot of datasets to have a final dataset with matched characteristics
I'm expanding this post -- answered by @edwards (Thanks).
I'm working with panel data. We assessed children in 2019, 2020, 2021 and 2022. Therefore, I have four datasets (2019, 2020, 2021, and 2022). ...
0
votes
1
answer
188
views
Calculating robust SEs following full matching (MatchIt) with mixed-effect models (lme4)
I am attempting to estimate a treatment effect for a study that features both (a) hierarchical data (students within classrooms; implemented with lme4) and (b) matching between treatment and control ...
0
votes
0
answers
36
views
Matching cases from imputed panel data (long-format) for further analysis (DiD)
I have a dataset that has missing values in baseline variables (t1) and in outcome variables (t2 & t3). Each individual has a unique ID and three lines in the dataset. I imputed these data via ...
0
votes
1
answer
111
views
Why might genetic matching (MatchIt) increase imbalance?
I'm using MatchIt to achieve greater balance between study groups. Most methods appear to work great, reducing differences in covariates across groups (I'm including method = "optimal" here ...
1
vote
1
answer
262
views
Incorporating survey weights with weightthem in R
I am attempting to incorporate survey/sampling weights while using CBPS and WeightThem after multiple imputation. The basic code structure of my approach is:
# MICE
var_list <- c("outcome"...
0
votes
1
answer
129
views
Ensuring Treated Subjects are Matched to Control Subjects
The entry for ratio in Matchit::matchit reads
for methods that allow it, how many control units should be matched to each treated unit in k:1 matching. Should be a single integer value. See the ...
0
votes
1
answer
125
views
Dropping observations after Fuzzy Match
I am doing some fuzzy matching using the 'matchit' command in Stata. After the fuzzy match, my data looks something like this
Identifier
Variable B
Variable C
Similarity Score
1
A
X
0.4
1
A
Y
0.6
1
...
4
votes
1
answer
237
views
I did the 1:3 propensity matching but the turnout shows 1:2.7 ratio, but the SMD results are very ideal, is this correct?
I was trying to match two groups with n1 = 181 and n2 = 39. Because the regular 1:1 or 1:2 matching cannot produce the ideal SMD results, I changed to 1:3 with caliper = 0.2. The results shows good ...
0
votes
1
answer
60
views
Problems getting results of MatchIt with rpy2 / How to debug R function with rpy2?
I wasn't able to reproduce this in an MWE. I was using this code in the past and it worked. Some might have changed since then.
There is no error. The problem is that get_balance is of NoneType. The ...
2
votes
1
answer
201
views
R package ebal for Entropy Balancing: Error message
I use the R package ebal for calculation of weights between treatment group and control group.
The package version is
> packageVersion("ebal")
[1] ‘0.1.8’
After 21 iterations the process ...