melt

Multiple empirical likelihood tests

https://github.com/ropensci/melt

Science Score: 39.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 4 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (21.4%) to scientific vocabulary

Keywords

cran r r-package rstats
Last synced: 9 months ago · JSON representation

Repository

Multiple empirical likelihood tests

Basic Info
Statistics
  • Stars: 15
  • Watchers: 4
  • Forks: 1
  • Open Issues: 0
  • Releases: 5
Topics
cran r r-package rstats
Created over 5 years ago · Last pushed about 2 years ago
Metadata Files
Readme Changelog Contributing License Codemeta

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  dpi = 300,
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# melt melt website


[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![R-CMD-check](https://github.com/ropensci/melt/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/ropensci/melt/actions/workflows/R-CMD-check.yaml)
[![pkgcheck](https://github.com/ropensci/melt/workflows/pkgcheck/badge.svg)](https://github.com/ropensci/melt/actions?query=workflow%3Apkgcheck)
[![Codecov test coverage](https://codecov.io/gh/ropensci/melt/branch/main/graph/badge.svg)](https://app.codecov.io/gh/ropensci/melt?branch=main)
[![CRAN status](https://www.r-pkg.org/badges/version/melt)](https://CRAN.R-project.org/package=melt)
[![runiverse](https://ropensci.r-universe.dev/badges/melt)](http://ropensci.r-universe.dev/ui/#package:melt)
[![ropensci review](https://badges.ropensci.org/550_status.svg)](https://github.com/ropensci/software-review/issues/550)



## Overview

melt provides a unified framework for data analysis with empirical likelihood methods.
A collection of functions is available to perform multiple empirical likelihood tests and construct confidence intervals for various models in 'R'.
melt offers an easy-to-use interface and flexibility in specifying hypotheses and calibration methods, extending the framework to simultaneous inferences.
The core computational routines are implemented with the 'Eigen' 'C++' library and 'RcppEigen' interface, with 'OpenMP' for parallel computation. 
Details of the testing procedures are provided in [Kim, MacEachern, and Peruggia (2023)](https://doi.org/10.1080/10485252.2023.2206919). 
The package has a companion paper by [Kim, MacEachern, and Peruggia (2024)](https://doi.org/10.18637/jss.v108.i05).
This work was supported by the U.S. National Science Foundation under Grants No. [SES-1921523](https://www.nsf.gov/awardsearch/showAward?AWD_ID=1921523) and [DMS-2015552](https://www.nsf.gov/awardsearch/showAward?AWD_ID=2015552).


## Installation

You can install the latest stable release of melt from CRAN.

```{r, eval = FALSE}
install.packages("melt")
```

You can install the development version of melt from GitHub or [R-universe](http://ropensci.r-universe.dev/ui/#package:melt).

```{r, eval = FALSE}
# install.packages("pak")
pak::pak("ropensci/melt")
```

```{r eval = FALSE}
install.packages("melt", repos = "https://ropensci.r-universe.dev")
```


## Main functions

melt provides an intuitive API for performing the most common data analysis tasks:

* `el_mean()` computes empirical likelihood for the mean.
* `el_lm()` fits a linear model with empirical likelihood.
* `el_glm()` fits a generalized linear model with empirical likelihood.
* `confint()` computes confidence intervals for model parameters.
* `confreg()` computes confidence region for model parameters.
* `elt()` tests a hypothesis with various calibration options.
* `elmt()` performs multiple testing simultaneously.


## Usage
```{r usage, eval = TRUE}
library(melt)
set.seed(971112)

## Test for the mean
data("precip")
(fit <- el_mean(precip, par = 30))


## Adjusted empirical likelihood calibration
elt(fit, rhs = 30, calibrate = "ael")


## Bootstrap calibration
elt(fit, rhs = 30, calibrate = "boot")


## F calibration
elt(fit, rhs = 30, calibrate = "f")


## Linear model
data("mtcars")
fit_lm <- el_lm(mpg ~ disp + hp + wt + qsec, data = mtcars)
summary(fit_lm)
cr <- confreg(fit_lm, parm = c("disp", "hp"), npoints = 200)
plot(cr)
data("clothianidin")
fit2_lm <- el_lm(clo ~ -1 + trt, data = clothianidin)
summary(fit2_lm)
confint(fit2_lm)


## Generalized linear model
data("thiamethoxam")
fit_glm <- el_glm(visit ~ log(mass) + fruit + foliage + var + trt,
  family = quasipoisson(link = "log"), data = thiamethoxam,
  control = el_control(maxit = 100, tol = 1e-08, nthreads = 4)
)
summary(fit_glm)


## Test of no treatment effect
contrast <- c(
  "trtNaked - trtFungicide", "trtFungicide - trtLow", "trtLow - trtHigh"
)
elt(fit2_lm, lhs = contrast)


## Multiple testing
contrast2 <- rbind(
  c(0, 0, 0, 0, 0, 1, 0, 0),
  c(0, 0, 0, 0, 0, 0, 1, 0),
  c(0, 0, 0, 0, 0, 0, 0, 1)
)
elmt(fit_glm, lhs = contrast2)
```

---
Please note that this package is released with a [Contributor Code of Conduct](https://ropensci.org/code-of-conduct/). By contributing to this project, you agree to abide by its terms.

Owner

  • Name: rOpenSci
  • Login: ropensci
  • Kind: organization
  • Email: info@ropensci.org
  • Location: Berkeley, CA

CodeMeta (codemeta.json)

{
  "@context": "https://doi.org/10.5063/schema/codemeta-2.0",
  "@type": "SoftwareSourceCode",
  "identifier": "melt",
  "description": "Performs multiple empirical likelihood tests. It offers an easy-to-use interface and flexibility in specifying hypotheses and calibration methods, extending the framework to simultaneous inferences. The core computational routines are implemented using the 'Eigen' 'C++' library and 'RcppEigen' interface, with 'OpenMP' for parallel computation. Details of the testing procedures are provided in Kim, MacEachern, and Peruggia (2023) <doi:10.1080/10485252.2023.2206919>. A companion paper by Kim, MacEachern, and Peruggia (2024) <doi:10.18637/jss.v108.i05> is available for further information. This work was supported by the U.S. National Science Foundation under Grants No. SES-1921523 and DMS-2015552.",
  "name": "melt: Multiple Empirical Likelihood Tests",
  "relatedLink": [
    "https://docs.ropensci.org/melt/",
    "https://CRAN.R-project.org/package=melt"
  ],
  "codeRepository": "https://github.com/ropensci/melt",
  "issueTracker": "https://github.com/ropensci/melt/issues",
  "license": "https://spdx.org/licenses/GPL-2.0",
  "version": "1.11.4",
  "programmingLanguage": {
    "@type": "ComputerLanguage",
    "name": "R",
    "url": "https://r-project.org"
  },
  "runtimePlatform": "R version 4.4.0 (2024-04-24)",
  "provider": {
    "@id": "https://cran.r-project.org",
    "@type": "Organization",
    "name": "Comprehensive R Archive Network (CRAN)",
    "url": "https://cran.r-project.org"
  },
  "author": [
    {
      "@type": "Person",
      "givenName": "Eunseop",
      "familyName": "Kim",
      "email": "markean@pm.me"
    }
  ],
  "contributor": [
    {
      "@type": "Person",
      "givenName": "Steven",
      "familyName": "MacEachern"
    },
    {
      "@type": "Person",
      "givenName": "Mario",
      "familyName": "Peruggia"
    },
    {
      "@type": "Person",
      "givenName": "Steven",
      "familyName": "MacEachern"
    },
    {
      "@type": "Person",
      "givenName": "Mario",
      "familyName": "Peruggia"
    }
  ],
  "copyrightHolder": [
    {
      "@type": "Person",
      "givenName": "Eunseop",
      "familyName": "Kim",
      "email": "markean@pm.me"
    }
  ],
  "maintainer": [
    {
      "@type": "Person",
      "givenName": "Eunseop",
      "familyName": "Kim",
      "email": "markean@pm.me"
    }
  ],
  "softwareSuggestions": [
    {
      "@type": "SoftwareApplication",
      "identifier": "car",
      "name": "car",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=car"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "carData",
      "name": "carData",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=carData"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "covr",
      "name": "covr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=covr"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "dplyr",
      "name": "dplyr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=dplyr"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "ggplot2",
      "name": "ggplot2",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=ggplot2"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "ggridges",
      "name": "ggridges",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=ggridges"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "knitr",
      "name": "knitr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=knitr"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "MASS",
      "name": "MASS",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=MASS"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "microbenchmark",
      "name": "microbenchmark",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=microbenchmark"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "multcomp",
      "name": "multcomp",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=multcomp"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "rmarkdown",
      "name": "rmarkdown",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=rmarkdown"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "spelling",
      "name": "spelling",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=spelling"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "testthat",
      "name": "testthat",
      "version": ">= 3.0.0",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=testthat"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "withr",
      "name": "withr",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=withr"
    }
  ],
  "softwareRequirements": {
    "1": {
      "@type": "SoftwareApplication",
      "identifier": "R",
      "name": "R",
      "version": ">= 4.1.0"
    },
    "2": {
      "@type": "SoftwareApplication",
      "identifier": "checkmate",
      "name": "checkmate",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=checkmate"
    },
    "3": {
      "@type": "SoftwareApplication",
      "identifier": "graphics",
      "name": "graphics"
    },
    "4": {
      "@type": "SoftwareApplication",
      "identifier": "methods",
      "name": "methods"
    },
    "5": {
      "@type": "SoftwareApplication",
      "identifier": "Rcpp",
      "name": "Rcpp",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=Rcpp"
    },
    "6": {
      "@type": "SoftwareApplication",
      "identifier": "stats",
      "name": "stats"
    },
    "7": {
      "@type": "SoftwareApplication",
      "identifier": "utils",
      "name": "utils"
    },
    "SystemRequirements": null
  },
  "fileSize": "367660.597KB",
  "citation": [
    {
      "@type": "ScholarlyArticle",
      "datePublished": "2024",
      "author": [
        {
          "@type": "Person",
          "givenName": "Eunseop",
          "familyName": "Kim",
          "email": "kim.7302@osu.edu"
        },
        {
          "@type": "Person",
          "givenName": [
            "Steven",
            "N."
          ],
          "familyName": "MacEachern",
          "email": "snm@stat.osu.edu"
        },
        {
          "@type": "Person",
          "givenName": "Mario",
          "familyName": "Peruggia",
          "email": "peruggia@stat.osu.edu"
        }
      ],
      "name": "{melt}: Multiple Empirical Likelihood Tests in {R}",
      "identifier": "10.18637/jss.v108.i05",
      "pagination": "1--33",
      "@id": "https://doi.org/10.18637/jss.v108.i05",
      "sameAs": "https://doi.org/10.18637/jss.v108.i05",
      "isPartOf": {
        "@type": "PublicationIssue",
        "issueNumber": "5",
        "datePublished": "2024",
        "isPartOf": {
          "@type": [
            "PublicationVolume",
            "Periodical"
          ],
          "volumeNumber": "108",
          "name": "Journal of Statistical Software"
        }
      }
    }
  ],
  "releaseNotes": "https://github.com/ropensci/melt/blob/master/NEWS.md",
  "contIntegration": [
    "https://github.com/ropensci/melt/actions/workflows/R-CMD-check.yaml",
    "https://github.com/ropensci/melt/actions?query=workflow%3Apkgcheck",
    "https://app.codecov.io/gh/ropensci/melt?branch=main"
  ],
  "developmentStatus": "https://www.repostatus.org/#active",
  "review": {
    "@type": "Review",
    "url": "https://github.com/ropensci/software-review/issues/550",
    "provider": "https://ropensci.org"
  }
}

GitHub Events

Total
  • Issues event: 4
  • Watch event: 4
  • Issue comment event: 2
Last Year
  • Issues event: 4
  • Watch event: 4
  • Issue comment event: 2

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 567
  • Total Committers: 4
  • Avg Commits per committer: 141.75
  • Development Distribution Score (DDS): 0.063
Past Year
  • Commits: 20
  • Committers: 1
  • Avg Commits per committer: 20.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
markean m****n@p****m 531
markean m****5@g****m 31
Eunseop Kim 4****n 4
kime47 k****p@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 8
  • Total pull requests: 2
  • Average time to close issues: 8 days
  • Average time to close pull requests: 4 days
  • Total issue authors: 3
  • Total pull request authors: 1
  • Average comments per issue: 0.38
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 1
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: 5 days
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 2.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • markean (5)
  • github-actions[bot] (1)
  • yyyuring (1)
Pull Request Authors
  • markean (4)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 1,120 last-month
  • Total dependent packages: 2
  • Total dependent repositories: 1
  • Total versions: 19
  • Total maintainers: 1
cran.r-project.org: melt

Multiple Empirical Likelihood Tests

  • Versions: 19
  • Dependent Packages: 2
  • Dependent Repositories: 1
  • Downloads: 1,120 Last month
Rankings
Downloads: 13.6%
Stargazers count: 17.4%
Average: 20.9%
Forks count: 21.0%
Dependent repos count: 23.8%
Dependent packages count: 28.6%
Maintainers (1)
Last synced: 10 months ago

Dependencies

.github/workflows/check-standard.yaml actions
  • actions/checkout v2 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
.github/workflows/pkgcheck.yaml actions
  • ropensci-review-tools/pkgcheck-action main composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action 4.1.4 composite
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • R >= 4.1.0 depends
  • Rcpp * imports
  • graphics * imports
  • methods * imports
  • stats * imports
  • utils * imports
  • R.rsp * suggests
  • covr * suggests
  • ggplot2 * suggests
  • knitr * suggests
  • microbenchmark * suggests
  • rmarkdown * suggests
  • spelling * suggests
  • testthat >= 3.0.0 suggests
  • withr * suggests