party

Can the algorithm in "partykit" ensure causal explanation?


Can the exposure-response relationship estimated within each subgroup, generated by using "partykit", have causal interpretation?


Solution

  • Yes, but it may need additional work.

    If the data come from a randomized controlled trial, then fitting a treatment-response model in every subgroup has the same type of causal interpretation it has in the full sample.

    However, in observational data, it is necessary to first estimate the propensity of treatment (i.e., the probability of treatment given the regressors) and use that in the treatment-response model in every subset. This is also known as "local centering" of the treatment indicator. Additionally, local centering of the dependent response variable may improve the performance of the model further.

    See Dandl et al. (2022) for more details and comparisons. For the setup in randomized controlled trials, there is also a dedicated interface package model4you that facilitates fitting "personalized" treatment-response models using trees and random forests. See the Seibold et al. publications for details on the software and underlying methods.