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

match.data does not function with {purrr} #58

Closed
kristopherdelane opened this issue Feb 17, 2021 · 1 comment
Closed

match.data does not function with {purrr} #58

kristopherdelane opened this issue Feb 17, 2021 · 1 comment

Comments

@kristopherdelane
Copy link

nest_data <- lalonde %>%
group_by(race) %>%
nest()

match_nested_data <- function(df){matchit(treat ~ age + re74 + educ + re75 + re78,
data = {{df}},
method = "cem") }

cem_matchit <- map(.x = nest_data$data, .f = match_nested_data)

data <- map(cem_matchit, match.data)

@ngreifer
Copy link
Collaborator

Please see #53. This is an inherent limitation in match.data() but can be solved by supplying the data argument to match.data().

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