Package: hetNSC 0.1.0
hetNSC: Heteroscedastic Nearest Shrunken Centroid Classification
Nearest shrunken centroid (NSC) classifiers for high-dimensional, low-sample-size data such as gene expression. Implements the original homoscedastic NSC with soft thresholding (Prediction Analysis of Microarrays; Tibshirani et al. 2002 <doi:10.1073/pnas.082099299>), its hard- and order-thresholding versions (Sahtout, Wang and Ghimire 2024 <doi:10.1080/03610918.2022.2047201>), and the heteroscedastic extension of Sahtout and Wang that uses class-specific variances in both the test statistic and the discriminant function (methods STh3, HTh3 and OTh3). The thresholding parameter is selected by a refined ("deep") cross-validation search. Also provides the simulation design, per-class performance metrics and the relative-heterogeneity diagnostic used in the paper.
Authors:
hetNSC_0.1.0.tar.gz
hetNSC_0.1.0.zip(r-4.7-any)hetNSC_0.1.0.zip(r-4.6-any)hetNSC_0.1.0.zip(r-4.5-any)
hetNSC_0.1.0.tgz(r-4.6-any)hetNSC_0.1.0.tgz(r-4.5-any)
hetNSC_0.1.0.tar.gz(r-4.7-any)hetNSC_0.1.0.tar.gz(r-4.6-any)
hetNSC_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
hetNSC/json (API)
| # Install 'hetNSC' in R: |
| install.packages('hetNSC', repos = c('https://hwanggit.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/hwanggit/hetnsc/issues
Last updated from:b3c7d6737b. Checks:7 NOTE, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | NOTE | 127 | ||
| source / vignettes | OK | 218 | ||
| linux-release | NOTE | 119 | ||
| macos-release | NOTE | 145 | ||
| macos-oldrel | NOTE | 187 | ||
| windows-devel | NOTE | 72 | ||
| windows-release | NOTE | 64 | ||
| windows-oldrel | NOTE | 54 | ||
| wasm-release | OK | 94 |
Exports:balanced_accbalanced_foldscompare_nsccompute_rho2hnschnsc_cvhnsc_methodshnsc_selecthnsc_trainmake_cmper_class_recallrecall_tablesimulate_hetero_data
Dependencies:MASS
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Class-balanced cross-validation folds | balanced_folds |
| Compare homoscedastic and heteroscedastic NSC classifiers on one dataset | compare_nsc |
| Empirical relative heterogeneity rho_k^2 and the crossover condition | compute_rho2 |
| Fit a nearest shrunken centroid classifier with the threshold chosen by cross-validation | hnsc |
| Cross-validation for a fitted NSC classifier | hnsc_cv |
| The six nearest shrunken centroid classifiers | hnsc_methods |
| Choose the threshold by refined ("deep") cross-validation | hnsc_select |
| Train a nearest shrunken centroid classifier over a grid of thresholds | hnsc_train |
| Confusion matrix, per-class recall and balanced accuracy | balanced_acc make_cm per_class_recall |
| Predict with a nearest shrunken centroid classifier | predict.hnsc |
| Simulate two-class data with correlated informative genes | simulate_hetero_data |
| Summaries of a classifier comparison | recall_table summary.hnsc_comparison |
