multinomineq

Multinomial models with linear inequalities

https://github.com/danheck/multinomineq

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.0%) to scientific vocabulary
Last synced: 7 months ago · JSON representation

Repository

Multinomial models with linear inequalities

Basic Info
  • Host: GitHub
  • Owner: danheck
  • Language: R
  • Default Branch: master
  • Size: 2.4 MB
Statistics
  • Stars: 4
  • Watchers: 2
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created over 7 years ago · Last pushed 9 months ago
Metadata Files
Readme

README.md

CRAN_Status_Badge R-CMD-check Coverage status License monthly downloads total downloads

R package multinomineq

Implements Gibbs sampling and Bayes factors for multinomial models with linear inequality constraints on the vector of probability parameters. As special cases, the model class includes models that predict a linear order of binomial probabilities (e.g., p[1] < p[2] < p[3] < .50) and mixture models assuming that the parameter vector p must be inside the convex hull of a finite number of predicted patterns (i.e., vertices).

Inequality-constrained multinomial models have applications in multiple areas in psychology and beyond:

  • Risky decisions between different gambles to test choice axioms such as transitivity (Regenwetter et al., 2012, 2014).
  • Outcome-based strategy classification of multiattribute decision strategies such as take-the-best (TTB) or weighted additive (WADD; Bröder & Schiffer, 2003; Heck et al., 2017).
  • Testing deterministic axioms of measurement and choice (Karabatsos, 2005; Myung et al., 2005).
  • Fitting and testing nonparametric item response theory models (Karabatsos & Sheu, 2004).
  • Order-constrained contingency tables (Klugkist et al., 2007, 2010).
  • Testing stochastic dominance of response time distributions (Heathcote et al., 2010).
  • Cognitive diagnostic assessment (Klugkist et al., 2007, 2010).

References and Vignette

A formal definition of inequality-constrained multinomial models and the implemented computational methods for Bayesian inference is provided in:

  • Heck, D. W., & Davis-Stober, C. P. (2019). Multinomial models with linear inequality constraints: Overview and improvements of computational methods for Bayesian inference. Journal of Mathematical Psychology, 91, 70-87. https://doi.org/10.1016/j.jmp.2019.03.004
  • Preprint version: https://arxiv.org/abs/1808.07140

Please cite this paper if you use multinomineq in publications.

The package vignette provides a short introduction of how to apply the main functions of multinomineq: vignette('multinomineq_intro')

The vignette is also available https://www.dwheck.de/vignettes/multinomineq_intro.html.

Installation

The package multinomineq can directly be installed from CRAN via: install.packages("multinomineq")

Alternatively, if developer tools for R are installed (see instructions below), the most recent version of multinomineq can also be installed from GitHub via: ```

install dependencies:

install.packages("devtools","RcppArmadillo","RcppProgress", "Rglpk", "quadprog", "RcppXPtrUtils")

install from Github:

devtools::install_github("danheck/multinomineq") ```

To transform between the vertex (V) and the inequality (A*x=4.0.0. For older R versions, the precompiled package can be installed via: install.packages("rPorta", repos = "https://danheck.github.io/drat/")

Compilation of Source Packages

On Linux, GLPK libraries have to be installed via the console: sudo apt-get install libglpk-dev

To compile C++ code, Windows and Mac require Rtools and Xcode Command Line Tools, respectively. Moreover, on Mac, it might be necessary to install the library gfortran manually, as required to compile the package RcppArmadillo.

Owner

  • Name: Daniel Heck
  • Login: danheck
  • Kind: user
  • Location: Germany
  • Company: Philipps-Universität Marburg

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 156
  • Total Committers: 1
  • Avg Commits per committer: 156.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 14
  • Committers: 1
  • Avg Commits per committer: 14.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Daniel Heck d****k@w****e 156

Issues and Pull Requests

Last synced: 7 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 306 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 5
  • Total maintainers: 1
cran.r-project.org: multinomineq

Bayesian Inference for Multinomial Models with Inequality Constraints

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 306 Last month
Rankings
Forks count: 21.9%
Stargazers count: 26.2%
Dependent packages count: 29.8%
Average: 34.1%
Dependent repos count: 35.5%
Downloads: 57.3%
Maintainers (1)
Last synced: 7 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • Rcpp >= 0.12.11 imports
  • RcppXPtrUtils * imports
  • Rglpk * imports
  • coda * imports
  • parallel * imports
  • quadprog * imports
  • covr * suggests
  • knitr * suggests
  • rPorta * suggests
  • testthat * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite