Package: PrInDT 2.0.3

Claus Weihs

PrInDT: Prediction and Interpretation in Decision Trees for Classification and Regression

Optimization of conditional inference trees from the package 'party' for classification and regression. For optimization, the model space is searched for the best tree on the full sample by means of repeated subsampling. Restrictions are allowed so that only trees are accepted which do not include pre-specified uninterpretable split results (cf. Weihs & Buschfeld, 2021a). The function PrInDT() represents the basic resampling loop for 2-class classification (cf. Weihs & Buschfeld, 2021a). The function RePrInDT() (repeated PrInDT()) allows for repeated applications of PrInDT() for different percentages of the observations of the large and the small classes (cf. Weihs & Buschfeld, 2021c). The function NesPrInDT() (nested PrInDT()) allows for an extra layer of subsampling for a specific factor variable (cf. Weihs & Buschfeld, 2021b). The functions PrInDTMulev() and PrInDTMulab() deal with multilevel and multilabel classification. In addition to these PrInDT() variants for classification, the function PrInDTreg() has been developed for regression problems. Finally, the function PostPrInDT() allows for a posterior analysis of the distribution of a specified variable in the terminal nodes of a given tree. In version 2, additionally structured sampling is implemented in functions PrInDTCstruc() and PrInDTRstruc(). In these functions, repeated measurements data can be analyzed, too. Moreover, multilabel 2-stage versions of classification and regression trees are implemented in functions C2SPrInDT() and R2SPrInDT() as well as interdependent multilabel models in functions SimCPrInDT() and SimRPrInDT(). Finally, for mixtures of classification and regression models functions Mix2SPrInDT() and SimMixPrInDT() are implemented. Most of these extensions of PrInDT are described in Buschfeld & Weihs (2026). References: -- Buschfeld, S., Weihs, C. (2026) "Optimizing decision trees for the analysis of World Englishes and sociolinguistic data", Cambridge Elements. <doi:10.1017/9781009470346>; -- Weihs, C., Buschfeld, S. (2021a) "Combining Prediction and Interpretation in Decision Trees (PrInDT) - a Linguistic Example" <doi:10.48550/arXiv.2103.02336>; -- Weihs, C., Buschfeld, S. (2021b) "NesPrInDT: Nested undersampling in PrInDT" <doi:10.48550/arXiv.2103.14931>; -- Weihs, C., Buschfeld, S. (2021c) "Repeated undersampling in PrInDT (RePrInDT): Variation in undersampling and prediction, and ranking of predictors in ensembles" <doi:10.48550/arXiv.2108.05129>.

Authors:Claus Weihs [aut, cre], Sarah Buschfeld [aut], Niklas Nitsch [ctb]

PrInDT_2.0.3.tar.gz
PrInDT_2.0.3.zip(r-4.7-any)
PrInDT_2.0.3.tar.gz(r-4.7-any)PrInDT_2.0.3.tar.gz(r-4.6-any)
PrInDT_2.0.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION
card.svg |card.png
PrInDT/json (API)

# Install 'PrInDT' in R:
install.packages('PrInDT', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))
Datasets:

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.60 score 1 scripts 335 downloads 21 exports 28 dependencies

Last updated from:d32aa203f6. Checks:5 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK197
source / vignettesOK236
linux-release-x86_64OK190
windows-devel-x86_64OK166
wasm-releaseOK114

Exports:C2SPrInDTMix2SPrInDTNesPrInDTOptPrInDTPostPrInDTPrInDTPrInDTAllPrInDTAllpartsPrInDTCstrucPrInDTMulabPrInDTMulabAllPrInDTMulevPrInDTMulevAllPrInDTregPrInDTregAllPrInDTRstrucR2SPrInDTRePrInDTSimCPrInDTSimMixPrInDTSimRPrInDT

Dependencies:clicodetoolscoindata.tablegdatagluegtoolslatticelibcoinlifecyclemagrittrMASSMatrixmatrixStatsmodeltoolsmultcompmvtnormpartyrlangsandwichsplitstackshapestringistringrstrucchangesurvivalTH.datavctrszoo

Readme and manuals

Help Manual

Help pageTopics
Two-stage estimation for classificationC2SPrInDT
Landscape analysisdata_land
Subject pronouns and a predictor with one very frequent leveldata_speaker
Vowel lengthdata_vowel
Subject pronounsdata_zero
Two-stage estimation for classification-regression mixturesMix2SPrInDT
Nested 'PrInDT' with additional undersampling of a factor with two unbalanced levelsNesPrInDT
Optimisation of undersampling percentages for classificationOptPrInDT
Participants of subject pronoun studyparticipant_zero
Posterior analysis of conditional inference trees: distribution of a specified variable in the terminal nodes.PostPrInDT
The basic undersampling loop for classificationPrInDT
Conditional inference tree (ctree) based on all observationsPrInDTAll
Conditional inference trees (ctrees) based on consecutive parts of the full samplePrInDTAllparts
Structured subsampling for classificationPrInDTCstruc
Multiple label classification based on resampling by 'PrInDT'PrInDTMulab
Multiple label classification based on all observationsPrInDTMulabAll
PrInDT analysis for a classification problem with multiple classes.PrInDTMulev
Conditional inference tree (ctree) for multiple classes on all observationsPrInDTMulevAll
Regression tree resampling by the PrInDT methodPrInDTreg
Regression tree based on all observationsPrInDTregAll
Structured subsampling for regressionPrInDTRstruc
Two-stage estimation for regressionR2SPrInDT
Repeated 'PrInDT' for specified percentage combinationsRePrInDT
Interdependent estimation for classificationSimCPrInDT
Interdependent estimation for classification-regression mixturesSimMixPrInDT
Interdependent estimation for regressionSimRPrInDT