Package: predkmeans 0.1.1

predkmeans: Covariate Adaptive Clustering

Implements the predictive k-means method for clustering observations, using a mixture of experts model to allow covariates to influence cluster centers. Motivated by air pollution epidemiology settings, where cluster membership needs to be predicted across space. Includes functions for predicting cluster membership using spatial splines and principal component analysis (PCA) scores using either multinomial logistic regression or support vector machines (SVMs). For method details see Keller et al. (2017) <doi:10.1214/16-AOAS992>.

Authors:Joshua Keller

predkmeans_0.1.1.tar.gz
predkmeans_0.1.1.zip(r-4.5)predkmeans_0.1.1.zip(r-4.4)predkmeans_0.1.1.zip(r-4.3)
predkmeans_0.1.1.tgz(r-4.4-x86_64)predkmeans_0.1.1.tgz(r-4.4-arm64)predkmeans_0.1.1.tgz(r-4.3-x86_64)predkmeans_0.1.1.tgz(r-4.3-arm64)
predkmeans_0.1.1.tar.gz(r-4.5-noble)predkmeans_0.1.1.tar.gz(r-4.4-noble)
predkmeans_0.1.1.tgz(r-4.4-emscripten)predkmeans_0.1.1.tgz(r-4.3-emscripten)
predkmeans.pdf |predkmeans.html
predkmeans/json (API)
NEWS

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

Peer review:

Bug tracker:https://github.com/kpkeller/predkmeans/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3

On CRAN:

2.70 score 10 scripts 122 downloads 12 exports 16 dependencies

Last updated 5 years agofrom:4a47447a64. Checks:OK: 7 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 26 2024
R-4.5-win-x86_64NOTEOct 26 2024
R-4.5-linux-x86_64NOTEOct 26 2024
R-4.4-win-x86_64OKOct 26 2024
R-4.4-mac-x86_64OKOct 26 2024
R-4.4-mac-aarch64OKOct 26 2024
R-4.3-win-x86_64OKOct 26 2024
R-4.3-mac-x86_64OKOct 26 2024
R-4.3-mac-aarch64OKOct 26 2024

Exports:assignClustercreateCVgroupscreatePCAmodelmatrixcreateTPRSmodelmatrixmlogitpredictionMetricspredictMixExppredictMLpredictSVMpredkmeanspredkmeansCVestpredkmeansCVpred

Dependencies:classdigeste1071genericslatticeMASSMatrixmaxLikmgcvmiscToolsnlmeproxyRcppRcppArmadillosandwichzoo

Readme and manuals

Help Manual

Help pageTopics
Covariate Adaptive Clusteringpredkmeans-package
Make Cluster AssignmentsassignCluster
Creating k-fold Cross-Validation GroupscreateCVgroups
Create Principal Component Analysis (PCA) scores matrixcreatePCAmodelmatrix
Create matrix of Thin-Plate Regression Splines (TPRS)createTPRSmodelmatrix
Multinomial Logistic Regressionmlogit
Measures of Prediction PerformancepredictionMetrics
Prediction of Cluster MembershippredictMixExp predictMixExp.predkmeans predictML predictML.predkmeans predictSVM predictSVM.predkmeans
Predictive K-means Clusteringpredkmeans
Cross-validation of Predictive K-means ClusteringpredkmeansCVest predkmeansCVpred
Re-order cluster labelsrelevel.predkmeans