DAP

Discriminant analysis via projections, R package

https://github.com/irinagain/dap

Science Score: 20.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Committers with academic emails
    2 of 3 committers (66.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.0%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Discriminant analysis via projections, R package

Basic Info
  • Host: GitHub
  • Owner: irinagain
  • Language: R
  • Default Branch: master
  • Size: 62.5 KB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 2
  • Open Issues: 0
  • Releases: 0
Created almost 9 years ago · Last pushed almost 7 years ago
Metadata Files
Readme

README.md

DAP: Discriminant Analysis via Projections

The R package DAP provides tools for high-dimensional binary classification in the case of unequal covariance matrices. It implements methods from the following paper: * Sparse quadratic classification rules via linear dimension reduction by Gaynanova and Wang (2017).

Installation

To install the latest version from Github, use s library(devtools) devtools::install_github("irinagain/DAP")

Usage

```s library(DAP) library(MASS)

Example

Specify model parameters

p = 100 mu1 = rep(0, p) mu2 = c(rep(3, 10), rep(0, p-10)) Sigma1 = diag(p) Sigma2 = 0.5*diag(p)

Build training data and test data

ntrain = 50 ntest = 50 x1 = MASS::mvrnorm(n = ntrain, mu = mu1, Sigma = Sigma1) x2 = MASS::mvrnorm(n = ntrain, mu = mu2, Sigma = Sigma2) xtrain = rbind(x1, x2) x1test = MASS::mvrnorm(n = ntest, mu = mu1, Sigma = Sigma1) x2test = MASS::mvrnorm(n = ntest, mu = mu2, Sigma = Sigma2) xtest = rbind(x1test, x2test) ytrain = c(rep(1, ntrain), rep(2, ntrain)) ytest = c(rep(1, ntest), rep(2, ntest))

Apply DAP

Given ytest, the function returns the miclassification error rate.

ClassificationError = apply_DAP(xtrain, ytrain, xtest, ytest)

Without ytest, the function returns predicted labels.

Ypredict = apply_DAP(xtrain, ytrain, xtest)

```

License

This package is free and open source software, licensed under GPL (>=2).

Owner

  • Name: Irina Gaynanova
  • Login: irinagain
  • Kind: user
  • Company: University of Michigan

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 53
  • Total Committers: 3
  • Avg Commits per committer: 17.667
  • Development Distribution Score (DDS): 0.566
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Unknown t****g@s****u 23
Irina i****g@s****u 19
Irina i****n 11
Committer Domains (Top 20 + Academic)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 140 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: DAP

Discriminant Analysis via Projections

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 140 Last month
Rankings
Forks count: 14.9%
Dependent packages count: 29.8%
Stargazers count: 31.7%
Average: 34.9%
Dependent repos count: 35.5%
Downloads: 63.0%
Maintainers (1)
Last synced: about 2 years ago

Dependencies

DESCRIPTION cran
  • MASS * imports
  • stats * imports