You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
computeForestLeafIndices() takes a covariate matrix, but not a propensity score and doesn't check model_params to see if the prop score was used as a covariate like predict.bcfmodel does. The return value has the expected dimensions and plausible content but is off in small, upredictable ways when the propensity score was used as a covariate (presumably because the function walking the tree is going out of the bounds of the supplied covariate matrix when the tree splits on the prop score). Manually appending the propensity score or omitting it as a covariate corrects the issue. The fix is probably to borrow the logic and preprocessing in predict.bcfmodel.