Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Predetermined subsample size #197

Open
igormarchetti opened this issue Jul 15, 2024 · 1 comment
Open

Predetermined subsample size #197

igormarchetti opened this issue Jul 15, 2024 · 1 comment

Comments

@igormarchetti
Copy link

Is it possible to specify the sample size of the two groups that I'm trying to match for specific covariates? I've managed to obtain two subgroups of the same size, but I would find it very usesful to calibrate to a predetermined sample size. Is it currently possible with the MatchIt package?

@ngreifer
Copy link
Collaborator

You can't with MatchIt, but you can using MatchingFrontier. It integrates with MatchIt to allow you to perform matching using MatchIt then discard one pair at a time until you reach your desired sample size, opun which you can extract the matched sample. See here for general information on the package. The functionality I mentioned is described here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants