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

Using the best_linear_projection to get coefficient estimates for treatment and control separately #1468

Open
aczura2024 opened this issue Nov 4, 2024 · 0 comments

Comments

@aczura2024
Copy link

I am fitting a causal forest with 2 treatment arms and want to use the best_linear_projection() function to estimate the regression coefficients on the treatment and control groups separately. When I make a separate matrix corresponding to the observations solely in the treatment group, I get an error Error in best_linear_projection(mycrf, A = treat_covar[, 2:ncol(treat_covar)]) :
The number of rows of A does not match the number of training examples.

Any ideas?

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

1 participant