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

Add more functions related to causal forest analysis #12

Merged
merged 2 commits into from
May 11, 2023
Merged

Conversation

kjakobse
Copy link
Collaborator

  • DiscreteCovariateNames to extract discrete covariate names (unexported)
  • vcovHC to obtain heteroscedasticity-consistent covariance matrices (unexported)
  • DiscreteCovariatesToOneHot to one-hot encode factors
  • CATESurface to calculate CATE on a surface of the covariate space
  • CausalForestDynamicSubgroups to calculate CATE in dynamically determined subgroups

Kim Daniel Jakobsen added 2 commits May 10, 2023 15:57
- DiscreteCovariatesToOneHot to one-hot encode factors
- DiscreteCovariateNames to extract discrete covariate names (unexported)
- vcovHC to obtain heteroscedasticity-consistent covariance matrices (unexported)
- CATESurface to calculate CATE on a surface of the covariate space
- CausalForestDynamicSubgroups to calculate CATE in dynamically determined subgroups
@kjakobse kjakobse requested a review from Laksafoss May 10, 2023 14:06
other_discrete = NULL,
max_predict_size = 100000,
num_threads = 2) {
# convert grid to list
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check input of grid?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, I see you have the check in line 133

@kjakobse kjakobse merged commit 5076f41 into main May 11, 2023
@kjakobse kjakobse deleted the kija_dev branch May 11, 2023 08:08
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

Successfully merging this pull request may close these issues.

None yet

2 participants