kogalur / randomForestSRC

DOCUMENTATION:
https://www.randomforestsrc.org/
GNU General Public License v3.0
114 stars 18 forks source link

Conditional Logistic Regression #31

Closed csaiedu closed 3 years ago

csaiedu commented 5 years ago

Is it possible to use randomForestSRC for evaluating a special form a cox ph regression called conditional logistic regression of the form:

coxph(formula = Surv(rep(1, 200L), event) ~ group + strata(id), 
    method = "exact")

Thanks

ishwaran commented 3 years ago

The "strata" option basically creates interactions with the variable "id".

Therefore create a new data set with these interactions and run this new data set down the forest. BTW this is called virtual twins random forests in the causal machine learning literature.