distcrete
:chart_with_upwards_trend::point_right::bar_chart: Discretise distributions
Science Score: 10.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
-
✓Committers with academic emails
1 of 6 committers (16.7%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.2%) to scientific vocabulary
Last synced: 11 months ago
·
JSON representation
Repository
:chart_with_upwards_trend::point_right::bar_chart: Discretise distributions
Basic Info
- Host: GitHub
- Owner: reconhub
- License: other
- Language: R
- Default Branch: master
- Homepage: http://reconhub.github.io/distcrete
- Size: 489 KB
Statistics
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 9
- Releases: 0
Created almost 10 years ago
· Last pushed over 8 years ago
Metadata Files
Readme
License
README.Rmd
---
output: github_document
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# distcrete
[](http://www.repostatus.org/#active)
[](https://travis-ci.org/reconhub/distcrete)
[](https://ci.appveyor.com/project/thibautjombart/distcrete/branch/master)
[](https://codecov.io/github/reconhub/distcrete?branch=master)
> Discrete Distribution Approximations
`distcrete` takes a distribution and a set of parameters and returns a list object with functions as elements. Each one is the equivalent to the function calls we typically expect to be able to do in R for a given distribution:
- Density e.g.`dnorm`
- Distribution function e.g. `pnorm`
- Quantile function e.g. `qnorm`
- Random generation e.g. `rnorm`
Each function created by `distcrete` corresponds to the first letter of the non-discrete equivalent.
```{r example}
set.seed(415)
d0 <- distcrete::distcrete("gamma", 1, shape = 3, w = 0)
d0$d(1:10)
d0$p(c(.1,.5))
d0$q(c(.1,.5))
d0$r(10)
```
## Allowed distributions
You can use any distribution that conforms to the following expectations:
- It has a distribution function like `p[dist name]` available
- It has a quantile function like `q[dist name]` available
These can be loaded from a package or created on the fly, but must exist when the `distcrete()` function is called.
## Installation
You can install it from CRAN with:
```{r cran-installation, eval = FALSE}
install.packages("distcrete")
```
You can install `distcrete` the most up to date version from github with:
```{r gh-installation, eval = FALSE}
# install.packages("devtools")
devtools::install_github("reconhub/distcrete")
```
## Tests
```{r tests}
devtools::test()
```
Owner
- Name: R Epidemics Consortium
- Login: reconhub
- Kind: organization
- Website: http://www.repidemicsconsortium.org
- Repositories: 69
- Profile: https://github.com/reconhub
Consortium for epidemics analysis and outbreak response using R
GitHub Events
Total
- Issues event: 1
Last Year
- Issues event: 1
Committers
Last synced: almost 3 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Rich FitzJohn | r****n@g****m | 17 |
| Thibaut Jombart | t****t@g****m | 8 |
| Steph Locke | s****e@c****m | 8 |
| Rich FitzJohn | r****n@i****k | 6 |
| Stephanie Locke | s****e@g****m | 1 |
| Dirk Schumacher | m****l@d****t | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 16
- Total pull requests: 5
- Average time to close issues: 5 months
- Average time to close pull requests: 26 days
- Total issue authors: 5
- Total pull request authors: 4
- Average comments per issue: 1.19
- Average comments per pull request: 1.6
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- richfitz (11)
- thibautjombart (2)
- CyGei (1)
- stephlocke (1)
- seabbs (1)
Pull Request Authors
- thibautjombart (2)
- dirkschumacher (1)
- richfitz (1)
- stephlocke (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 850 last-month
- Total docker downloads: 43,547
- Total dependent packages: 3
- Total dependent repositories: 7
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: distcrete
Discrete Distribution Approximations
- Homepage: https://github.com/reconhub/distcrete
- Documentation: http://cran.r-project.org/web/packages/distcrete/distcrete.pdf
- License: MIT + file LICENSE
-
Latest release: 1.0.3
published over 8 years ago
Rankings
Docker downloads count: 0.6%
Dependent packages count: 10.9%
Dependent repos count: 11.1%
Average: 14.4%
Downloads: 19.4%
Forks count: 21.0%
Stargazers count: 23.6%
Maintainers (1)
Last synced:
11 months ago
Dependencies
DESCRIPTION
cran
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests