Skip to content

Commit 472147f

Browse files
authored
Hotfix for bcf.predict without propensity scores
the new dataset for predictions takes X_combined, which wasn't created when propensity_covariate="none"
1 parent 1484f8a commit 472147f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/bcf.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2707,6 +2707,7 @@ predict.bcfmodel <- function(
27072707
}
27082708

27092709
# Add propensities to covariate set if necessary
2710+
X_combined <- X
27102711
if (object$model_params$propensity_covariate != "none") {
27112712
X_combined <- cbind(X, propensity)
27122713
}

0 commit comments

Comments
 (0)