Skip to content

Commit 282219c

Browse files
committed
Fixed R bug
1 parent 5c2dbfc commit 282219c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/kernel.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ computeForestLeafIndices <- function(model_object, covariates, forest_type=NULL,
103103
stop("propensity must be provided for this model")
104104
}
105105
# Compute propensity score using the internal bart model
106-
propensity <- rowMeans(predict(model_object$bart_propensity_model, X)$y_hat)
106+
propensity <- rowMeans(predict(model_object$bart_propensity_model, covariates)$y_hat)
107107
}
108108
covariates_processed <- cbind(covariates_processed, propensity)
109109
}

0 commit comments

Comments
 (0)