-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Thank you for the package! I'm trying to estimate double robust scores for a binary outcome variable. However, when using double_robust_scores(), I get gamma values outside of 0-1. I can reproduce this with the example in the package but a binary outcome variable.
# library(policytree)
n <- 250
p <- 10
X <- matrix(rnorm(n * p), n, p)
W <- as.factor(sample(c("A", "B", "C"), n, replace = TRUE))
Y <- sample(c(0, 1), n, replace = TRUE) # new outcome variable
multi.forest <- grf::multi_arm_causal_forest(X, Y, W)
# Compute doubly robust reward estimates.
Gamma.matrix <- double_robust_scores(multi.forest)
summary(Gamma.matrix)
A B C
Min. :-1.2928 Min. :-1.8635 Min. :-1.3356
1st Qu.: 0.4616 1st Qu.: 0.5229 1st Qu.: 0.3900
Median : 0.4968 Median : 0.5512 Median : 0.4283
Mean : 0.4956 Mean : 0.5451 Mean : 0.4237
3rd Qu.: 0.5376 3rd Qu.: 0.5911 3rd Qu.: 0.4581
Max. : 2.4399 Max. : 2.4520 Max. : 2.6737
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested