# NOT RUN {
# }
# NOT RUN {
library(StratifiedMedicine)
## Binomial ##
dat_bin = generate_subgrp_data(family="binomial")
Y = dat_bin$Y
X = dat_bin$X
A = dat_bin$A
res_glmtree1 = submod_glmtree(Y, A, X, Xtest=X)
res_glmtree2 = submod_glmtree(Y, A, X, Xtest=X, link="logit")
plot(res_glmtree1$mod)
plot(res_glmtree2$mod)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab