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
GermanCredit

Statlog German Credit
betascale

Scale membership values according to a beta scaling
e.scal

Function to calculate e- or softmax scaled membership values
distmirr

Internal function to convert a distance structure to a matrix
TopoS

Computation of criterion S of a visualization
cond.index

Calculation of Condition Indices for Linear Regression
benchB3

Benchmarking on B3 data
B3

West German Business Cycles 1955-1994
calc.trans

Calculation of transition probabilities
b.scal

Calculation of beta scaling parameters
drawparti

Plotting the 2-d partitions of classification methods
centerlines

Lines from classborders to the center
NaiveBayes

Naive Bayes Classifier
classscatter

Classification scatterplot matrix
cvtree

Extracts variable cluster IDs
EDAM

Computation of an Eight Direction Arranged Map
countries

Socioeconomic data for the most populous countries.
corclust

Function to identify groups of highly correlated variables for removing correlated features from the data for further analysis.