cicalibrate

R package for computing support intervals for univariate parameters based on confidence intervals or parameter estimates with standard errors.

https://github.com/samch93/cicalibrate

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 10 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.0%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

R package for computing support intervals for univariate parameters based on confidence intervals or parameter estimates with standard errors.

Basic Info
  • Host: GitHub
  • Owner: SamCH93
  • License: gpl-3.0
  • Language: R
  • Default Branch: main
  • Homepage:
  • Size: 239 KB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • Open Issues: 4
  • Releases: 0
Created about 4 years ago · Last pushed about 3 years ago

https://github.com/SamCH93/ciCalibrate/blob/main/

# ciCalibrate

**ciCalibrate** is an R package for computing support intervals for unknown
univariate parameters. A support interval can either be computed based on a
parameter estimate and standard error or based on a confidence interval for the
respective parameter. The main function for doing so is `ciCalibrate`, see the
documentation with `?ciCalibrate` for the available options. Theoretical
background on support intervals is provided in the accompanying paper [Pawel et
al. (2023)](https://doi.org/10.1080/00031305.2023.2216239) and also [Wagenmakers
et al. (2020)](https://doi.org/10.1007/s10670-019-00209-z).

## Installation

```r
## development version from GitHub (requires remotes package)
## remotes::install_github(repo = "SamCH93/ciCalibrate")

## from CRAN
install.packages(pkgs = "ciCalibrate")
```

## Usage

``` r
library("ciCalibrate")

## data from RECOVERY trial
logHR <- -0.19 # estimate
se <- 0.05 # standard error of estimate
ci95 <- logHR + c(-1, 1) * qnorm(p = 0.975) * se # 95% Wald-CI

## default normal prior for logHR under the alternative H1
pm <- 0 # center around value of no effect
psd <- 2 # unit-information standard deviation for a logHR

## compute a support interval with support level = 10
si10 <- ciCalibrate(estimate = logHR, se = se, siLevel = 10, method = "SI-normal",
                    priorMean = pm, priorSD = psd)

## compute instead with confidence interval as input
si10 <- ciCalibrate(ci = ci95, ciLevel = 0.95, siLevel = 10, method = "SI-normal",
                    priorMean = pm, priorSD = psd)
si10

#> Point Estimate [95% Confidence Interval] 
#> -0.19 [-0.29,-0.092]
#> 
#> Calibration Method
#> Normal prior for parameter under alternative
#> with mean m = 0 and standard deviation sd = 2
#> 
#> k = 10 Support Interval
#> [-0.27,-0.11]

## plot Bayes factor function and support interval
plot(si10)
```
![Output of the command plot(si10): the Bayes factor function and the 10 support
interval](SIexample.png)

## References

Pawel, S., Ly, A., and Wagenmakers, E.-J. (2023). Evidential Calibration of
Confidence Intervals. *The American Statistician*.
[doi:10.1080/00031305.2023.2216239](https://doi.org/10.1080/00031305.2023.2216239)

* Wagenmakers, E.-J., Gronau, Q. F., Dablander, F., and Etz, A. (2020). The
  support interval. Erkenntnis.
  [doi:10.1007/s10670-019-00209-z](https://doi.org/10.1007/s10670-019-00209-z)

Owner

  • Name: Samuel Pawel
  • Login: SamCH93
  • Kind: user

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 4
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total 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
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
  • SamCH93 (4)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 208 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: ciCalibrate

Calibration of Confidence Intervals to Support Intervals

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 208 Last month
Rankings
Forks count: 28.8%
Dependent packages count: 29.5%
Stargazers count: 31.7%
Dependent repos count: 35.2%
Average: 42.9%
Downloads: 89.1%
Maintainers (1)
Last synced: 10 months ago