Learn R Programming

⚠️There's a newer version (2.2-13) of this package.Take me there.

fpc (version 2.2-10)

Flexible Procedures for Clustering

Description

Various methods for clustering and cluster validation. Fixed point clustering. Linear regression clustering. Clustering by merging Gaussian mixture components. Symmetric and asymmetric discriminant projections for visualisation of the separation of groupings. Cluster validation statistics for distance based clustering including corrected Rand index. Standardisation of cluster validation statistics by random clusterings and comparison between many clustering methods and numbers of clusters based on this. Cluster-wise cluster stability assessment. Methods for estimation of the number of clusters: Calinski-Harabasz, Tibshirani and Walther's prediction strength, Fang and Wang's bootstrap stability. Gaussian/multinomial mixture fitting for mixed continuous/categorical variables. Variable-wise statistics for cluster interpretation. DBSCAN clustering. Interface functions for many clustering methods implemented in R, including estimating the number of clusters with kmeans, pam and clara. Modality diagnosis for Gaussian mixtures. For an overview see package?fpc.

Copy Link

Version

Install

install.packages('fpc')

Monthly Downloads

17,192

Version

2.2-10

License

GPL

Maintainer

Christian Hennig

Last Published

January 7th, 2023

Functions in fpc (2.2-10)

bhattacharyya.matrix

Matrix of pairwise Bhattacharyya distances
cweight

Weight function for AWC
tdecomp

Root of singularity-corrected eigenvalue decomposition
mixdens

Density of multivariate Gaussian mixture, mclust parameterisation
randomclustersim

Simulation of validity indexes based on random clusterings
distcritmulti

Distance based validity criteria for large data sets
adcoord

Asymmetric discriminant coordinates
ancoord

Asymmetric neighborhood based discriminant coordinates
clusexpect

Expected value of the number of times a fixed point cluster is found
simmatrix

Extracting intersections between clusters from fpc-object
jittervar

Jitter variables in a data matrix
fixreg

Linear Regression Fixed Point Clusters
cluster.magazine

Run many clustering methods on many numbers of clusters
clujaccard

Jaccard similarity between logical vectors
discrproj

Linear dimension reduction for classification
distancefactor

Factor for dissimilarity of mixed type data
dudahart2

Duda-Hart test for splitting
cluster.stats

Cluster validation statistics
cat2bin

Recode nominal variables to binary variables
clucols

Sets of colours and symbols for cluster plotting
itnumber

Number of regression fixed point cluster iterations
cvnn

Cluster validation based on nearest neighbours
mahalconf

Mahalanobis fixed point clusters initial configuration
solvecov

Inversion of (possibly singular) symmetric matrices
cov.wml

Weighted Covariance Matrices (Maximum Likelihood)
weightplots

Ordered posterior plots
kmeansruns

k-means with estimating k and initialisations
neginc

Neg-entropy normality index for cluster validation
cdbw

CDbw-index for cluster validation
mergenormals

Clustering by merging Gaussian mixture components
kmeansCBI

Interface functions for clustering methods
randcmatrix

Random partition matrix
lcmixed

flexmix method for mixed Gaussian/multinomial mixtures
cluster.varstats

Variablewise statistics for clusters
calinhara

Calinski-Harabasz index
bhattacharyya.dist

Bhattacharyya distance between Gaussian distributions
plotcluster

Discriminant projection plot.
sseg

Position in a similarity vector
classifdist

Classification of unclustered points
localshape

Local shape matrix
awcoord

Asymmetric weighted discriminant coordinates
clusterbenchstats

Run and validate many clusterings
wfu

Weight function (for Mahalabobis distances)
con.comp

Connectivity components of an undirected graph
clusterboot

Clusterwise cluster stability assessment by resampling
batcoord

Bhattacharyya discriminant projection
fpc-package

fpc package overview
cgrestandard

Standardise cluster validation statistics by random clustering results
discrete.recode

Recodes mixed variables dataset
mergeparameters

New parameters from merging two Gaussian mixture components
fpclusters

Extracting clusters from fixed point cluster objects
rFace

"Face-shaped" clustered benchmark datasets
confusion

Misclassification probabilities in mixtures
cqcluster.stats

Cluster validation statistics (version for use with clusterbenchstats
cmahal

Generation of tuning constant for Mahalanobis fixed point clusters.
prediction.strength

Prediction strength for estimating number of clusters
tonedata

Tone perception data
distrsimilarity

Similarity of within-cluster distributions to normal and uniform
piridge.zeroes

Extrema of two-component Gaussian mixture
extract.mixturepars

Extract parameters for certain components from mclust
stupidknn

Stupid nearest neighbour random clustering
minsize

Minimum size of regression fixed point cluster
unimodal.ind

Is a fitted denisity unimodal or not?
flexmixedruns

Fitting mixed Gaussian/multinomial mixtures with flexmix
stupidkfn

Stupid farthest neighbour random clustering
dridgeline

Density along the ridgeline
nselectboot

Selection of the number of clusters via bootstrap
clustatsum

Compute and format cluster validation statistics
plot.valstat

Simulation-standardised plot and print of cluster validation statistics
mixpredictive

Prediction strength of merged Gaussian mixture
ridgeline

Ridgeline computation
mahalanodisc

Mahalanobis for AWC
can

Generation of the tuning constant for regression fixed point clusters
dipp.tantrum

Simulates p-value for dip test
mvdcoord

Mean/variance differences discriminant coordinates
diptest.multi

Diptest for discriminant coordinate projection
ncoord

Neighborhood based discriminant coordinates
ridgeline.diagnosis

Ridgeline plots, ratios and unimodality
randconf

Generate a sample indicator vector
regmix

Mixture Model ML for Clusterwise Linear Regression
dbscan

DBSCAN density reachability and connectivity clustering
findrep

Finding representatives for cluster border
valstat.object

Cluster validation statistics - object
pamk

Partitioning around medoids with estimation of number of clusters
discrcoord

Discriminant coordinates/canonical variates
fixmahal

Mahalanobis Fixed Point Clusters
mahalanofix

Mahalanobis distances from center of indexed points
stupidkcentroids

Stupid k-centroids random clustering
piridge

Ridgeline Pi-function
stupidkaven

Stupid average dissimilarity random clustering
xtable

Partition crosstable with empty clusters
zmisclassification.matrix

Matrix of misclassification probabilities between mixture components