Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffreypullin/rater
R package to fit statistical models to repeated categorical rating data using Stan
https://github.com/jeffreypullin/rater
annotations bayesian bayesian-statistics r r-package stan
Last synced: 24 days ago
JSON representation
R package to fit statistical models to repeated categorical rating data using Stan
- Host: GitHub
- URL: https://github.com/jeffreypullin/rater
- Owner: jeffreypullin
- License: gpl-2.0
- Created: 2019-01-18T03:44:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-11T19:22:16.000Z (about 1 year ago)
- Last Synced: 2024-03-19T11:04:07.454Z (8 months ago)
- Topics: annotations, bayesian, bayesian-statistics, r, r-package, stan
- Language: R
- Homepage: https://jeffreypullin.github.io/rater
- Size: 31.3 MB
- Stars: 17
- Watchers: 2
- Forks: 3
- Open Issues: 19
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, fig.path = "man/figures/README-")
set.seed(1)
```# rater
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/rater)](https://cran.r-project.org/package=rater)
[![R-CMD-check](https://github.com/jeffreypullin/rater/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jeffreypullin/rater/actions/workflows/R-CMD-check.yaml)
[![Coverage status](https://codecov.io/gh/jeffreypullin/rater/branch/master/graph/badge.svg)](https://app.codecov.io/gh/jeffreypullin/rater?branch=master)
![pkgdown](https://github.com/jeffreypullin/rater/workflows/pkgdown/badge.svg)**rater** provides tools for fitting and interrogating statistical models of repeated categorical rating data. The package provides a simple interface to fit a selection of these models, with arbitrary prior parameters, using MCMC and optimisation provided by [Stan](https://mc-stan.org/). A selection of functions are also provided to plot parts of these models and extract key parameters.
## Example usage:
```{r fit-demo, message = FALSE, warning = FALSE, results = "hide"}
library(rater)fit <- rater(anesthesia, "dawid_skene") # Sampling output suppressed.
```Get the posterior mean of the "pi" parameter.
```{r extract-demo}
point_estimate(fit, "pi")
```Plot the accuracy matrices of the raters.
```{r plot-demo}
plot(fit, "raters")
```## Installation
**rater** requires the **rstan** package to fit models. Detailed instructions to install **rstan** can be found [here](https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started)
### CRAN
Install **rater** from CRAN with:
```{r cran-installation, eval = FALSE}
install.packages("rater")
```### Development
To install the development version of **rater** from GitHub run:
```{r dev-installation, eval = FALSE}
# install.packages("remotes")
remotes::install_github("jeffreypullin/rater")
```#### Installation notes:
- When installing from source, i.e. when installing the development version or installing from CRAN on Linux, the **Stan** models in the package will be compiled - this will lead to an install time of few minutes. Please be patient - this compilation means that **no** compilation is required when using the package
- During compilation many warnings may be displayed in the terminal; these are harmless but impossible to suppress.