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
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
Metadata Files
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
- Website: https://irinagain.github.io
- Twitter: IrinaStats
- Repositories: 25
- Profile: https://github.com/irinagain
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: almost 3 years ago
Top Committers
| Name | 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
- Homepage: http://github.com/irinagain/DAP
- Documentation: http://cran.r-project.org/web/packages/DAP/DAP.pdf
- License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
- Status: removed
-
Latest release: 1.0
published over 8 years ago
Rankings
Maintainers (1)
Dependencies
- MASS * imports
- stats * imports