multgee
GEE solver for correlated nominal or ordinal multinomial responses using a local odds ratios parameterization.
Science Score: 59.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 1 DOI reference(s) in README -
✓Academic publication links
Links to: wiley.com -
✓Committers with academic emails
3 of 3 committers (100.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (18.9%) to scientific vocabulary
Keywords
gee
multinomial
r
Keywords from Contributors
bioconductor-package
high-dimensional
Last synced: 6 months ago
·
JSON representation
Repository
GEE solver for correlated nominal or ordinal multinomial responses using a local odds ratios parameterization.
Basic Info
- Host: GitHub
- Owner: AnestisTouloumis
- Language: R
- Default Branch: master
- Homepage: https://CRAN.R-project.org/package=multgee
- Size: 4.41 MB
Statistics
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 4
- Releases: 0
Topics
gee
multinomial
r
Created over 8 years ago
· Last pushed almost 2 years ago
Metadata Files
Readme
README.Rmd
---
output: github_document
references:
- id: Touloumis2015
title: "R Package multgee: A Generalized Estimating Equations Solver for Multinomial Responses"
author:
- family: Touloumis
given: Anestis
container-title: Journal of Statistical Software
volume: 64
URL: 'https://www.jstatsoft.org/v064/i08'
issue: 8
page: 1-14
type: article-journal
issued:
year: 2015
- id: Touloumis2013
title: "GEE for Multinomial Responses Using a Local Odds Ratios Parameterization"
author:
- family: Touloumis
given: Anestis
- family: Agresti
given: Alan
- family: Kateri
given: Maria
container-title: Biometrics
volume: 69
URL: 'https://onlinelibrary.wiley.com/doi/10.1111/biom.12054/full'
issue: 3
page: 633--640
type: article-journal
issued:
year: 2013
csl: biometrics.csl
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(
tidy = TRUE,
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# multgee: GEE Solver for Correlated Nominal or Ordinal Multinomial Responses
[[, 'Version']),"-orange.svg")`)]("commits/master")
[](https://github.com/AnestisTouloumis/multgee/actions/workflows/R-CMD-check.yaml)
[](http://www.repostatus.org/#active)
[](https://cran.r-project.org/package=multgee)
[](https://cranlogs.r-pkg.org/badges/grand-total/multgee)
[](https://cran.r-project.org/package=multgee)
## Installation
You can install the release version of `multgee`:
```{r eval=FALSE}
install.packages("multgee")
```
The source code for the release version of `multgee` is available on CRAN at:
- https://CRAN.R-project.org/package=multgee
Or you can install the development version of `multgee`:
```{r eval=FALSE}
# install.packages("devtools")
devtools::install_github("AnestisTouloumis/multgee")
```
The source code for the development version of `multgee` is available on github at:
- https://github.com/AnestisTouloumis/multgee
To use `multgee`, you should load the package as follows:
```{r}
library("multgee")
```
## Usage
This package provides a generalized estimating equations (GEE) solver for fitting marginal regression models with correlated nominal or ordinal multinomial responses based on a local odds ratios parameterization for the association structure [see @Touloumis2013].
There are two core functions to fit GEE models for correlated multinomial responses:
- `ordLORgee` for an ordinal response scale. Options for the marginal model include cumulative link models or an adjacent categories logit model,
- `nomLORgee` for a nominal response scale. Currently, the only option is a marginal baseline category logit model.
The main arguments in both functions are:
- an optional data frame (`data`),
- a model formula (`formula`),
- a cluster identifier variable (`id`),
- an optional vector that identifies the order of the observations within each cluster (`repeated`).
The association structure among the correlated multinomial responses is expressed via marginalized local odds ratios [@Touloumis2013]. The estimating procedure for the local odds ratios can be summarized as follows: For each level pair of the `repeated` variable, the available responses are aggregated across clusters to form a square marginalized contingency table. Treating these tables as independent, an RC-G(1) type model is fitted in order to estimate the marginalized local odds ratios. The `LORstr` argument determines the form of the marginalized local odds ratios structure. Since the general RC-G(1) model is closely related to the family of association models, one can instead fit an association model to each of the marginalized contingency tables by setting `LORem = "2way"` in the core functions.
There are also five useful utility functions:
- `confint` for obtaining Wald--type confidence intervals for the regression parameters using the standard errors of the sandwich (`method = "robust"`) or of the model--based (`method = "naive"`) covariance matrix. The default option is the sandwich covariance matrix (`method = "robust"`),
- `waldts` for assessing the goodness-of-fit of two nested GEE models based on a Wald test statistic,
- `vcov` for obtaining the sandwich (`method = "robust"`) or model--based (`method = "naive"`) covariance matrix of the regression parameters,
- `intrinsic.pars` for assessing whether the underlying association structure does not change dramatically across the level pairs of `repeated`,
- `gee_criteria` for reporting commonly used criteria to select variables and/or association structure for GEE models.
## Example
The following R code replicates the GEE analysis presented in @Touloumis2013.
```{r}
data("arthritis")
intrinsic.pars(y, arthritis, id, time, rscale = "ordinal")
```
The intrinsic parameters do not differ much. This suggests that the uniform local odds ratios structure might be a good approximation for the association pattern.
```{r}
fitord <- ordLORgee(formula = y ~ factor(time) + factor(trt) + factor(baseline),
data = arthritis, id = id, repeated = time)
summary(fitord)
```
The 95\% Wald confidence intervals for the regression parameters are
```{r}
confint(fitord)
```
To illustrate model comparison, consider another model with `age` and `sex` as additional covariates:
```{r}
fitord1 <- update(fitord, formula = . ~ . + age + factor(sex))
waldts(fitord, fitord1)
gee_criteria(fitord, fitord1)
```
According to the Wald test, there is no evidence of no difference between the two models. The QICu criterion suggest that `fitord` should be preferred over `fitord1`.
## Getting help
The statistical methods implemented in `multgee` are described in @Touloumis2013. A detailed description of the functionality of `multgee` can be found in @Touloumis2015. Note that an updated version of this paper also serves as a vignette:
```{r eval=FALSE}
browseVignettes("multgee")
```
## How to cite
```{r echo=FALSE, comment=""}
print(citation("multgee"), bibtex = TRUE)
```
# References
Owner
- Name: Anestis Touloumis
- Login: AnestisTouloumis
- Kind: user
- Location: Brighton, UK
- Company: University of Brighton
- Website: https://research.brighton.ac.uk/en/persons/anestis-touloumis
- Twitter: anetouloumis
- Repositories: 20
- Profile: https://github.com/AnestisTouloumis
GitHub Events
Total
- Issues event: 1
- Issue comment event: 1
Last Year
- Issues event: 1
- Issue comment event: 1
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| AnestisTouloumis | A****s@b****k | 110 |
| Anestis Touloumis | a****9@b****k | 5 |
| AnestisTouloumis | a****s@b****k | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 9
- Total pull requests: 0
- Average time to close issues: 4 months
- Average time to close pull requests: N/A
- Total issue authors: 7
- Total pull request authors: 0
- Average comments per issue: 1.44
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 1
- 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
Top Authors
Issue Authors
- Generalized (2)
- lzhtom (1)
- andrewjmc (1)
- SudoSchrodinger (1)
- CharlieLiu220 (1)
- julclu (1)
- gautig (1)
Pull Request Authors
Top Labels
Issue Labels
help wanted (1)
question (1)
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 2,128 last-month
- Total docker downloads: 21,853
- Total dependent packages: 4
- Total dependent repositories: 32
- Total versions: 13
- Total maintainers: 1
cran.r-project.org: multgee
GEE Solver for Correlated Nominal or Ordinal Multinomial Responses
- Homepage: https://github.com/AnestisTouloumis/multgee
- Documentation: http://cran.r-project.org/web/packages/multgee/multgee.pdf
- License: GPL-2 | GPL-3
-
Latest release: 1.9.0
published over 2 years ago
Rankings
Dependent repos count: 4.7%
Dependent packages count: 9.3%
Downloads: 9.4%
Average: 12.5%
Docker downloads count: 12.6%
Stargazers count: 18.3%
Forks count: 21.0%
Maintainers (1)
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- R >= 2.15.0 depends
- gnm * depends
- Rcpp * imports
- VGAM * imports
- stats * imports
- utils * imports
- knitr * suggests
- rmarkdown * suggests
- rticles * 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
- r-lib/actions/setup-tinytex v2 composite