Science Score: 13.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
Found 4 DOI reference(s) in README -
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (17.9%) to scientific vocabulary
Keywords
confidence-intervals
physics
r
statistics
Last synced: 10 months ago
·
JSON representation
Repository
Feldman-Cousins Confidence Intervals
Basic Info
- Host: GitHub
- Owner: vgherard
- Language: R
- Default Branch: master
- Homepage: https://vgherard.github.io/fcci
- Size: 133 KB
Statistics
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 0
Topics
confidence-intervals
physics
r
statistics
Created over 5 years ago
· Last pushed over 4 years ago
Metadata Files
Readme
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# fcci
[](https://www.repostatus.org/#active)
[](https://github.com/vgherard/fcci/actions)
[](https://app.codecov.io/gh/vgherard/fcci?branch=master)
[](https://CRAN.R-project.org/package=fcci)
[](https://vgherard.r-universe.dev/)
[](https://vgherard.github.io/fcci/)
[](https://twitter.com/intent/tweet?text={fcci}: Feldman-Cousins Confidence Intervals in R&url=https://vgherard.github.io/r2r&via=ValerioGherardi&hashtags=rstats,statistics,physics,confidenceintervals)
`fcci` is an R package providing support for building [Feldman-Cousins](https://doi.org/10.1103/PhysRevD.57.3873) confidence
intervals.
## Motivation
The Feldman-Cousins construction was originally developed in the context of
High-Energy Physics, as a consistent method for building classical (frequentist) confidence intervals for Poisson rates of rare events. In experiments which expect only few events, it is often the case that the number of observed events is actually zero or, more generally, lower than the expected number of spurious background events (if the latter is significantly larger than zero).
In these situations, classical central intervals (such as those produced by `stats::poisson.test()`) are not satisfying, as they can lead both to significant overcoverage and to non-physical negative rates in the presence of a non-negligible background. Moreover, a naive special treatment of boundary values, which chooses to report an upper limit or a confidence interval depending on the data (the so-called ["flip-flopping" policy](https://doi.org/10.1103/PhysRevD.57.3873)), can lead to undercoverage.
Feldman and Cousins provide a unified treatment of boundary and regular values, by explicitly constructing the [Neyman confidence belt](https://en.wikipedia.org/wiki/Neyman_construction) for physical rates, using an ordering for count values based on a likelihood ratio.
## Installation
You can install the latest release of `fcci` from [CRAN](https://CRAN.R-project.org/package=fcci) using:
``` r
install.packages("fcci")
```
and the development version from [my R-universe](https://vgherard.r-universe.dev/) with:
``` r
install.packages("fcci", repos = "https://vgherard.r-universe.dev/")
```
## Example
```{r}
library(fcci)
```
To compute a confidence interval for, e.g., a Poisson rate, use:
```{r}
# 95% C.L. interval for n = 10 events and b = 2 expected background events
confint_pois(n = 10, b = 2, cl = 0.95)
```
Let us compare the 68% C.L. intervals for $n=0$ events and no background
obtained from `fcci` and from `stats::poisson.test()`
```{r}
confint_pois(n = 0, cl = 0.68)
stats::poisson.test(0, conf.level = 0.68, alternative = "two.sided")$conf.int
```
Notice that the latter is significantly larger, and it corresponds in fact to
an 84% C.L. *upper limit* on the rate:
```{r}
stats::poisson.test(0, conf.level = 0.84, alternative = "less")$conf.int
```
## Getting Help
For further help, you can consult the reference page of the `fcci` [website](https://vgherard.github.io/fcci/) or [open an issue](https://github.com/vgherard/fcci/issues) on the GitHub repository of `fcci`.
Owner
- Name: Valerio Gherardi
- Login: vgherard
- Kind: user
- Location: Valencia, España
- Company: Voicemod
- Website: vgherard.github.io
- Twitter: ValerioGherardi
- Repositories: 7
- Profile: https://github.com/vgherard
|physicist> + |data scientist>
GitHub Events
Total
Last Year
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| vgherard | v****d@s****t | 33 |
| Valerio Gherardi | v****i@v****t | 14 |
Committer Domains (Top 20 + Academic)
voicemod.net: 1
sissa.it: 1
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 197 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: fcci
Feldman-Cousins Confidence Intervals
- Homepage: https://github.com/vgherard/fcci
- Documentation: http://cran.r-project.org/web/packages/fcci/fcci.pdf
- License: GPL (≥ 3)
-
Latest release: 1.0.1
published over 4 years ago
Rankings
Forks count: 21.9%
Stargazers count: 26.2%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Average: 38.4%
Downloads: 78.9%
Maintainers (1)
Last synced:
11 months ago
Dependencies
DESCRIPTION
cran
- Rcpp * imports
- assertthat * imports
- rlang * imports
- covr * suggests
- testthat >= 3.0.0 suggests