Learn R Programming

model4you (version 0.9-9)

Stratified and Personalised Models Based on Model-Based Trees and Forests

Description

Model-based trees for subgroup analyses in clinical trials and model-based forests for the estimation and prediction of personalised treatment effects (personalised models). Currently partitioning of linear models, lm(), generalised linear models, glm(), and Weibull models, survreg(), is supported. Advanced plotting functionality is supported for the trees and a test for parameter heterogeneity is provided for the personalised models. For details on model-based trees for subgroup analyses see Seibold, Zeileis and Hothorn (2016) ; for details on model-based forests for estimation of individual treatment effects see Seibold, Zeileis and Hothorn (2017) .

Copy Link

Version

Install

install.packages('model4you')

Monthly Downloads

221

Version

0.9-9

License

GPL-2 | GPL-3

Maintainer

Heidi Seibold

Last Published

February 12th, 2026

Functions in model4you (0.9-9)

rss

Residual sum of squares
survreg_plot

Survival plot for a given survreg model with one binary covariate.
varimp.pmforest

Variable Importance for pmforest
.add_modelinfo

Add model information to a personalised-model-ctree
lm_plot

Density plot for a given lm model with one binary covariate.
binomial_glm_plot

Plot for a given logistic regression model (glm with binomial family) with one binary covariate.
objfun

Objective function
node_pmterminal

Panel-Generator for Visualization of pmtrees
.modelfit

Fit function when model object is given
.prepare_args

Prepare input for ctree/cforest from input of pmtree/pmforest
coxph_plot

Survival plot for a given coxph model with one binary covariate.
logLik.pmtree

Extract log-Likelihood
coeftable.survreg

Table of coefficients for survreg model
objfun.pmodel_identity

Objective function of personalised models
pmodel

Personalised model
pmforest

Compute model-based forest from model.
one_factor

Check if model has only one factor covariate.
pmtest

Test if personalised models improve upon base model.
pmtree

Compute model-based tree from model.
objfun.pmtree

Objective function of a given pmtree
print.pmtree

Methods for pmtree
predict.pmtree

pmtree predictions