Learn R Programming

glmtree (version 0.3.1)

Logistic Regression Trees

Description

A logistic regression tree is a decision tree with logistic regressions at its leaves. A particular stochastic expectation maximization algorithm is used to draw a few good trees, that are then assessed via the user's criterion of choice among BIC / AIC / test set Gini. The formal development is given in a PhD chapter, see Ehrhardt (2019) .

Copy Link

Version

Install

install.packages('glmtree')

Monthly Downloads

22

Version

0.3.1

License

GPL (>= 2)

Maintainer

Adrien Ehrhardt

Last Published

March 6th, 2024

Functions in glmtree (0.3.1)

glmtree

Logistic regression tree by Stochastic-Expectation-Maximization
normalizedGini

Calculating the normalized Gini index
generateData

Generates data from two logistic regression trees.
initialization

Random initialization of the segmentation
glmdisc-class

Class glmtree
predict_tweaked

Tweaked predict to take into account levels that are not in the training set but in the test set and remove these rows.