Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dataknit/joint
- Owner: dataknit
- Created: 2023-07-15T19:57:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-08T20:53:49.000Z (over 1 year ago)
- Last Synced: 2024-10-12T19:44:35.924Z (3 months ago)
- Language: R
- Size: 2.37 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```