Package: predkmeans 0.1.1

Joshua Keller

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.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://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

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

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.70 score 10 scripts 110 downloads 12 exports 16 dependencies

Last updated 5 years agofrom:3c0072dd49. Checks:OK: 1 NOTE: 1. Indexed: no.

TargetResultDate
Doc / VignettesOKOct 31 2024
R-4.5-linux-x86_64NOTEOct 31 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