r-wdm

Weighted Dependence Measures

https://github.com/tnagler/wdm-r

Science Score: 23.0%

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

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 4 committers (25.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.8%) to scientific vocabulary

Keywords

dependence statistics
Last synced: 11 months ago · JSON representation

Repository

Weighted Dependence Measures

Basic Info
  • Host: GitHub
  • Owner: tnagler
  • License: other
  • Language: R
  • Default Branch: main
  • Size: 342 KB
Statistics
  • Stars: 3
  • Watchers: 3
  • Forks: 1
  • Open Issues: 1
  • Releases: 6
Topics
dependence statistics
Created over 8 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---

```{r setup, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```
# wdm

[![R-CMD-check](https://github.com/tnagler/wdm-r/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tnagler/wdm-r/actions/workflows/R-CMD-check.yaml)
[![CRAN status](https://www.r-pkg.org/badges/version/wdm)](https://cran.r-project.org/package=wdm)
![CRAN downloads](http://cranlogs.r-pkg.org/badges/wdm)

R interface to the [wdm](https://github.com/tnagler/wdm) C++ library, which
provides efficient implementations of weighted dependence measures and related 
independence tests:

   * Pearsons's rho
   * Spearmans's rho
   * Kendall's tau
   * Blomqvist's beta
   * Hoeffding's D
 
All measures are computed in *O(n* log *n)* time, where *n* is the number of 
observations. 

For a detailed description of the functionality, see the 
[API documentation](https://tnagler.github.io/wdm-r/).


### Installation

- the stable release from CRAN:

``` r
install.packages("wdm")
```

- the development version from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
install_submodule_git <- function(x, ...) {
  install_dir <- tempfile()
  system(paste("git clone --recursive", shQuote(x), shQuote(install_dir)))
  devtools::install(install_dir, ...)
}
install_submodule_git("https://github.com/tnagler/wdm-r")
```

### Cloning

This repo contains [wdm](https://github.com/tnagler/wdm) as a submodule. For 
a full clone use
``` shell
git clone --recurse-submodules 
```

### Examples

```{r}
library(wdm)
```

#####  Dependence between two vectors
``` {r}
x <- rnorm(100)
y <- rpois(100, 1)  # all but Hoeffding's D can handle ties
w <- runif(100)
wdm(x, y, method = "kendall")               # unweighted
wdm(x, y, method = "kendall", weights = w)  # weighted
```

#####  Dependence in a matrix
``` {r}
x <- matrix(rnorm(100 * 3), 100, 3)
wdm(x, method = "spearman")               # unweighted
wdm(x, method = "spearman", weights = w)  # weighted
```

##### Independence test
``` {r}
x <- rnorm(100)
y <- rpois(100, 1)  # all but Hoeffding's D can handle ties
w <- runif(100)
indep_test(x, y, method = "kendall")               # unweighted
indep_test(x, y, method = "kendall", weights = w)  # weighted
```

Owner

  • Name: Thomas Nagler
  • Login: tnagler
  • Kind: user
  • Location: Munich, Germany
  • Company: LMU Munich

GitHub Events

Total
  • Release event: 1
  • Push event: 2
  • Create event: 1
Last Year
  • Release event: 1
  • Push event: 2
  • Create event: 1

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 71
  • Total Committers: 4
  • Avg Commits per committer: 17.75
  • Development Distribution Score (DDS): 0.141
Past Year
  • Commits: 11
  • Committers: 1
  • Avg Commits per committer: 11.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
tnagler t****r@t****e 61
Thomas Nagler t****r 6
tvatter t****r@g****m 2
tnagler m****l@t****m 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: over 2 years ago

All Time
  • Total issues: 2
  • Total pull requests: 7
  • Average time to close issues: 3 days
  • Average time to close pull requests: about 12 hours
  • Total issue authors: 2
  • Total pull request authors: 2
  • Average comments per issue: 3.5
  • Average comments per pull request: 0.0
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: 3 days
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 5.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • barracuda156 (1)
  • AndriSignorell (1)
Pull Request Authors
  • tnagler (5)
  • tvatter (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • cran 1,616 last-month
  • Total docker downloads: 58
  • Total dependent packages: 8
    (may contain duplicates)
  • Total dependent repositories: 13
    (may contain duplicates)
  • Total versions: 9
  • Total maintainers: 1
cran.r-project.org: wdm

Weighted Dependence Measures

  • Versions: 8
  • Dependent Packages: 7
  • Dependent Repositories: 13
  • Downloads: 1,616 Last month
  • Docker Downloads: 58
Rankings
Dependent packages count: 6.6%
Dependent repos count: 8.0%
Downloads: 9.2%
Average: 14.6%
Docker downloads count: 17.5%
Forks count: 21.0%
Stargazers count: 25.5%
Maintainers (1)
Last synced: 11 months ago
conda-forge.org: r-wdm
  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Dependent packages count: 28.8%
Dependent repos count: 34.0%
Average: 44.3%
Stargazers count: 57.0%
Forks count: 57.4%
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.2.0 depends
  • Rcpp * imports
  • Hmisc * suggests
  • copula * suggests
  • covr * suggests
  • testthat * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/cache v1 composite
  • actions/checkout v2 composite
  • actions/upload-artifact main composite
  • r-lib/actions/setup-pandoc master composite
  • r-lib/actions/setup-r master composite