Learn R Programming

klaR (version 1.7-4)

Classification and Visualization

Description

Miscellaneous functions for classification and visualization, e.g. regularized discriminant analysis, sknn() kernel-density naive Bayes, an interface to 'svmlight' and stepclass() wrapper variable selection for supervised classification, partimat() visualization of classification rules and shardsplot() of cluster results as well as kmodes() clustering for categorical data, corclust() variable clustering, variable extraction from different variable clustering models and weight of evidence preprocessing.

Copy Link

Version

Install

install.packages('klaR')

Monthly Downloads

16,182

Version

1.7-4

License

GPL-2 | GPL-3

Maintainer

Uwe Ligges

Last Published

February 23rd, 2026

Functions in klaR (1.7-4)

dkernel

Estimate density of a given kernel
.dmvnorm

Density of a Multivariate Normal Distribution
nm

Nearest Mean Classification
greedy.wilks

Stepwise forward variable selection for classification
hmm.sop

Calculation of HMM Sum of Path
loclda

Localized Linear Discriminant Analysis (LocLDA)
meclight.default

Minimal Error Classification
locpvs

Pairwise variable selection for classification in local models
partimat

Plotting the 2-d partitions of classification methods
friedman.data

Friedman's classification benchmark data
errormatrix

Tabulation of prediction errors by classes
kmodes

K-Modes Clustering
plot.woe

Plot information values
predict.pvs

predict method for pvs objects
predict.meclight

Prediction of Minimal Error Classification
predict.loclda

Localized Linear Discriminant Analysis (LocLDA)
predict.locpvs

predict method for locpvs objects
predict.rda

Regularized Discriminant Analysis (RDA)
predict.sknn

Simple k Nearest Neighbours Classification
plineplot

Plotting marginal posterior class probabilities
plot.NaiveBayes

Naive Bayes Plot
predict.NaiveBayes

Naive Bayes Classifier
predict.woe

Weights of evidence
sknn

Simple k nearest Neighbours
rda

Regularized Discriminant Analysis (RDA)
rerange

Linear transformation of data
stepclass

Stepwise variable selection for classification
predict.svmlight

Interface to SVMlight
shardsplot

Plotting Eight Direction Arranged Maps or Self-Organizing Maps
quadtrafo

Transforming of 4 dimensional values in a barycentric coordinate system.
pvs

Pairwise variable selection for classification
quadplot

Plotting of 4 dimensional membership representation simplex
triframe

Barycentric plots
ucpm

Uschi's classification performance measures
tripoints

Barycentric plots
trigrid

Barycentric plots
tritrafo

Barycentric plots
svmlight

Interface to SVMlight
triperplines

Barycentric plots
triplot

Barycentric plots
woe

Weights of evidence
xtractvars

Variable clustering based variable selection