Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dataknit/joint

R package to approximate joint distributions
https://github.com/dataknit/joint

Last synced: about 1 month ago
JSON representation

R package to approximate joint distributions

Awesome Lists containing this project

README

        

# joint

The goal of joint is to implement methods to approximate joint distributions from multiple marginal distributions.

## Installation

You can install the development version of joint from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("jokroese/joint")
```

## Example

You can approximate a joint distribution from several marginal distributions.

``` r
library(joint)
targets <- list(age_lsoa, age_disability_la, age_nssec_la)
empty_joint <- tidyr::crossing(age_lsoa$lsoa,
age_lsoa$age_91_categories,
age_disability_la$disability_3_categories,
age_nssec_la$nssec_10_categories)
joint <- approximate_joint(empty_joint, targets)
```