Skip to content

model4you

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

v0.9-9 · Feb 12, 2026 · GPL-2 | GPL-3

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) <doi:10.1515/ijb-2015-0032>; for details on model-based forests for estimation of individual treatment effects see Seibold, Zeileis and Hothorn (2017) <doi:10.1177/0962280217693034>.

Downloads

CRAN

431

Last 30 days

9267th

1.2K

Last 90 days

6.7K

Last year

Trend: +17.1% (30d vs prior 30d)

r2u CRAN

9

Last 30 days

29

Last 90 days

114

Last year

Trend: -52.6% (30d vs prior 30d)

autoCRAN

2

Last 7 days

4

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running massageExamples to create ‘model4you-Ex.R’ failed
Error in file(out, "wt") : cannot open the connection
Calls: <Anonymous> -> Rd2ex -> file
In addition: Warning message:
In file(out, "wt") :
  cannot open file '/tmp/Rtmp0ltxfD/file3afb2073bd8549/objfun.R': No space left on device
Execution halted
 NONE
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies partykit sandwich ggplot2 Formula gridExtra survival rlang model4you

Version History

10 tracked
new 0.9-9 Mar 10, 2026
updated 0.9-9 ← 0.9-8 diff Feb 11, 2026
updated 0.9-8 ← 0.9-7 diff Nov 7, 2024
updated 0.9-7 ← 0.9-6 diff Jan 19, 2021
updated 0.9-6 ← 0.9-5 diff Nov 24, 2020
updated 0.9-5 ← 0.9-3 diff Feb 18, 2020
updated 0.9-3 ← 0.9-2 diff Nov 11, 2018
updated 0.9-2 ← 0.9-1 diff Jun 14, 2018
updated 0.9-1 ← 0.9-0 diff Feb 7, 2018
new 0.9-0 Jan 15, 2018