MyNixOS website logo
Description

Shrunken Centroids Regularized Discriminant Analysis.

Provides functions implementing the shrunken centroids regularized discriminant analysis for classification purpose in high dimensional data. The method is described in Guo at al. (2013) <doi:10.1093/biostatistics/kxj035>.

rda: Shrunken Centroids Regularized Discriminant Analysis

CRANversion R-CMD-check Codecov testcoverage downloads downloads license

Installation

The rda package was removed from CRAN (The Comprehensive R Archive Network) and is currently archived. As soon as it is back on CRAN, we will inform you that it is possible to install it from CRAN:

##    install.packages("rda")

Building from source

To install the latest stable development version from GitHub, you can pull this repository and install it using

## install.packages("remotes")
remotes::install_github("valentint/rda")

Of course, if you have already installed remotes, you can skip the first line (I have commented it out).

Example

This is a basic example which shows you if the package is properly installed:

library(rda)
data(colon)
colon.x <- t(colon.x)
(fit <- rda(colon.x, colon.y))
#> Call:
#> rda(x = colon.x, y = colon.y)
#> $nonzero
#>       delta
#> alpha     0 0.333 0.667    1 1.333 1.667    2 2.333 2.667    3
#>   0    2000   132    12    0     0     0    0     0     0    0
#>   0.11 2000    23     0    0     0     0    0     0     0    0
#>   0.22 2000    21     0    0     0     0    0     0     0    0
#>   0.33 2000    33     0    0     0     0    0     0     0    0
#>   0.44 2000    56     2    0     0     0    0     0     0    0
#>   0.55 2000   119     7    0     0     0    0     0     0    0
#>   0.66 2000   252    27    2     0     0    0     0     0    0
#>   0.77 2000   531   107   24     5     0    0     0     0    0
#>   0.88 2000  1069   486  217   100    44   16     9     3    1
#>   0.99 2000  1930  1858 1780  1695  1612 1524  1431  1354 1276
#> 
#> $errors
#>       delta
#> alpha  0 0.333 0.667  1 1.333 1.667  2 2.333 2.667  3
#>   0    7     7     8 22    22    22 22    22    22 22
#>   0.11 4     8    22 22    22    22 22    22    22 22
#>   0.22 0     8    22 22    22    22 22    22    22 22
#>   0.33 0     2    22 22    22    22 22    22    22 22
#>   0.44 0     1    22 22    22    22 22    22    22 22
#>   0.55 0     1    21 22    22    22 22    22    22 22
#>   0.66 0     1     2 22    22    22 22    22    22 22
#>   0.77 0     0     1  3    20    22 22    22    22 22
#>   0.88 0     0     1  1     1     2  5     8    19 22
#>   0.99 0     0     0  0     0     0  0     0     0  0

Community guidelines

Report issues and request features

If you experience any bugs or issues or if you have any suggestions for additional features, please submit an issue via the Issues tab of this repository. Please have a look at existing issues first to see if your problem or feature request has already been discussed.

Contribute to the package

If you want to contribute to the package, you can fork this repository and create a pull request after implementing the desired functionality.

Ask for help

If you need help using the package, or if you are interested in collaborations related to this project, please get in touch with the package maintainer.

Metadata

Version

1.2-1

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows