Learn R Programming

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

fpc (version 2.1-6)

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. 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

19,476

Version

2.1-6

License

GPL

Maintainer

Christian Hennig

Last Published

October 30th, 2013

Functions in fpc (2.1-6)

randconf

Generate a sample indicator vector
cat2bin

Recode nominal variables to binary variables
adcoord

Asymmetric discriminant coordinates
can

Generation of the tuning constant for regression fixed point clusters
kmeansruns

k-means with estimating k and initialisations
mvdcoord

Mean/variance differences discriminant coordinates
ridgeline

Ridgeline computation
clucols

Sets of colours and symbols for cluster plotting
awcoord

Asymmetric weighted discriminant coordinates
clusterboot

Clusterwise cluster stability assessment by resampling
cov.wml

Weighted Covariance Matrices (Maximum Likelihood)
bhattacharyya.matrix

Matrix of pairwise Bhattacharyya distances
batcoord

Bhattacharyya discriminant projection
ancoord

Asymmetric neighborhood based discriminant coordinates
diptest.multi

Diptest for discriminant coordinate projection
calinhara

Calinski-Harabasz index
mixdens

Density of multivariate Gaussian mixture, mclust parameterisation
pamk

Partitioning around medoids with estimation of number of clusters
piridge

Ridgeline Pi-function
rFace

"Face-shaped" clustered benchmark datasets
dridgeline

Density along the ridgeline
clujaccard

Jaccard similarity between logical vectors
discrcoord

Discriminant coordinates/canonical variates
con.comp

Connectivity components of an undirected graph
plotcluster

Discriminant projection plot.
mergeparameters

New parameters from merging two Gaussian mixture components
fpclusters

Extracting clusters from fixed point cluster objects
confusion

Misclassification probabilities in mixtures
classifdist

Classification of unclustered points
fixmahal

Mahalanobis Fixed Point Clusters
mahalconf

Mahalanobis fixed point clusters initial configuration
fixreg

Linear Regression Fixed Point Clusters
cluster.varstats

Variablewise statistics for clusters
discrete.recode

Recodes mixed variables dataset
simmatrix

Extracting intersections between clusters from fpc-object
dudahart2

Duda-Hart test for splitting
clusexpect

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

Random partition matrix
nselectboot

Selection of the number of clusters via bootstrap
distcritmulti

Distance based validity criteria for large data sets
flexmixedruns

Fitting mixed Gaussian/multinomial mixtures with flexmix
weightplots

Ordered posterior plots
mahalanofix

Mahalanobis distances from center of indexed points
distancefactor

Factor for dissimilarity of mixed type data
jittervar

Jitter variables in a data matrix
minsize

Minimum size of regression fixed point cluster
localshape

Local shape matrix
itnumber

Number of regression fixed point cluster iterations
cluster.stats

Cluster validation statistics
lcmixed

flexmix method for mixed Gaussian/multinomial mixtures
cmahal

Generation of tuning constant for Mahalanobis fixed point clusters.
fpc-package

fpc package overview
ridgeline.diagnosis

Ridgeline plots, ratios and unimodality
kmeansCBI

Interface functions for clustering methods
dbscan

DBSCAN density reachability and connectivity clustering
discrproj

Linear dimension reduction for classification
bhattacharyya.dist

Bhattacharyya distance between Gaussian distributions
cweight

Weight function for AWC
extract.mixturepars

Extract parameters for certain components from mclust
mahalanodisc

Mahalanobis for AWC
ncoord

Neighborhood based discriminant coordinates
piridge.zeroes

Extrema of two-component Gaussian mixture
dipp.tantrum

Simulates p-value for dip test
mixpredictive

Prediction strength of merged Gaussian mixture
unimodal.ind

Is a fitted denisity unimodal or not?
mergenormals

Clustering by merging Gaussian mixture components
prediction.strength

Prediction strength for estimating number of clusters
solvecov

Inversion of (possibly singular) symmetric matrices
wfu

Weight function (for Mahalabobis distances)
sseg

Position in a similarity vector
tdecomp

Root of singularity-corrected eigenvalue decomposition
tonedata

Tone perception data
regmix

Mixture Model ML for Clusterwise Linear Regression
zmisclassification.matrix

Matrix of misclassification probabilities between mixture components