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

report the casual effect of each of leaves in the plot #630

Closed
zhong1969 opened this issue Mar 5, 2020 · 4 comments
Closed

report the casual effect of each of leaves in the plot #630

zhong1969 opened this issue Mar 5, 2020 · 4 comments
Labels

Comments

@zhong1969
Copy link

I have a question related to the codes of “grf”.

I used the following codes to plot a tree:

tree3.plot = plot(get_tree(forest3.iv, 1))
cat(DiagrammeRsvg::export_svg(tree3.plot), file='plot_non_cluster.svg')

In each of leaves in the plot, it reported size, avg_Y, avg_W and avg_Z. Could you please kindly tell me how to report the casual effect of each of leaves in the plot?

Great thanks!

@erikcs erikcs added the question label Mar 5, 2020
@erikcs
Copy link
Member

erikcs commented Mar 5, 2020

There is currently no built in functions to report that, but this thread may be useful: #238 . The are also some resources in the documentation: https://grf-labs.github.io/grf/articles/diagnostics.html#assessing-fit

@erikcs
Copy link
Member

erikcs commented Mar 6, 2020

It will eventually be possible to do this with #281. Note that you can also use the package policytree to fit a shallow tree on the double robust scores, see the package documentation here

@fateme74
Copy link

fateme74 commented Jun 3, 2020

Hi,
when we run these lines of codes below,is str.error the MSE?
If not how we can access MSE or MAE?
#>
#> Best linear fit using forest predictions (on held-out data)
#> as well as the mean forest prediction as regressors, along
#> with one-sided heteroskedasticity-robust (HC3) SEs:
#>
#> Estimate Std. Error t value Pr(>t)
#> mean.forest.prediction 1.01173 0.12993 7.7867 5.48e-15 ***
#> differential.forest.prediction 1.19326 0.10122 11.7885 < 2.2e-16 ***
#> ---
#> Signif. codes: 0 '' 0.001 '' 0.01 '' 0.05 '.' 0.1 ' ' 1

@fateme74
Copy link

fateme74 commented Jun 3, 2020

Hi,
after fit a causal forest how we can access to final leaf and save observation that fall in final leaf to make other prediction on them?(Actually I want to fit a causal forest on my data to find subgroups and I need to do other prediction on each subgroup)

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

No branches or pull requests

4 participants