gremlin
R package for mixed-effects REML incorporating Generalized Inverses
Science Score: 10.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
-
✓Academic publication links
Links to: zenodo.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.0%) to scientific vocabulary
Keywords
Repository
R package for mixed-effects REML incorporating Generalized Inverses
Basic Info
Statistics
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 1
- Releases: 0
Topics
Metadata Files
README.md
gremlin
R package for mixed-effects model REML incorporating Generalized Inverses (so, with some mental gymnastics: GREMLIN).
See the latest developments:
- gremlin NEWS page
Overview of main branches:
masterbranch is the most recent production version (often the same as what is available from the R CRAN mirrors)develbranch is a preview of the next release which should be functional and error/bug free, but proceed with caution
To install gremlin:
From R:
- see the package page for the latest release of gremlin on CRAN where you can download the source.
- install the latest release of the package directly in R:
R install.packages("gremlin")then select your favorite CRAN mirror
From GitHub:
- install the latest versions directly in R using the
remotespackage https://github.com/r-lib/remotes:
- install the latest versions directly in R using the
```
# Install master branch
remotes::install_github("matthewwolak/gremlin")
# Install devel branch
remotes::install_github("matthewwolak/gremlin", ref = "devel")
```
Examples
Estimating autosomal additive and dominance genetic variances
``` library(gremlin) library(nadiv) #<-- needed for creating inverse relatedness matrices
Add unique term for including individual effects of additive and dominance
warcolak$IDD <- warcolak$ID
Create generalized inverse matrices
Ainv <- makeAinv(warcolak[, 1:3])$Ainv Dinv <- makeD(warcolak[, 1:3])$Dinv
Basic model structure is as follows:
Fixed effects of sex
ID = autosomal additive genetic variance term
IDD = autosomal dominance genetic variance term
grAD <- gremlin(trait1 ~ sex-1, random = ~ ID + IDD, ginverse = list(ID = Ainv, IDD = Dinv), data = warcolak)
```
Summarize model
```
Summary
nrow(warcolak) summary(grAD) ```
Calculating combinations of (co)variances and quantifying uncertainty
Delta method
```
Calculate proportions of phenotypic variances (and Std. Error)
deltaSE(h2 ~ V1 / (V1 + V2 + V3), grAD) deltaSE(d2 ~ V2 / (V1 + V2 + V3), grAD) ```
Likelihood Ratio Test
- Hypothesis test: domimance variance=0
``
## Do this 2 alternative ways - both useupdate()`:
Either fix dominance variance to almost zero
grA_Dfxd <- update(grAD, Gstart = list(0.1, 1e-8), Gcon = list("P", "F"))
Or drop dominance variance from the model
grA <- update(grAD, random = ~ ID)
Compare log-likelihoods
logLik(grA_Dfxd) logLik(grA)
Do the Hypothesis test:
anova(grA, grAD)
```
Owner
- Name: Matthew
- Login: matthewwolak
- Kind: user
- Location: Auburn, AL, USA
- Company: Auburn University
- Website: http://matthewwolak.github.io
- Repositories: 14
- Profile: https://github.com/matthewwolak
GitHub Events
Total
- Create event: 1
- Issues event: 2
- Release event: 1
- Issue comment event: 3
- Push event: 14
- Pull request event: 3
Last Year
- Create event: 1
- Issues event: 2
- Release event: 1
- Issue comment event: 3
- Push event: 14
- Pull request event: 3
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| matthewwolak | m****k@g****m | 560 |
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 2
- Total pull requests: 24
- Average time to close issues: 17 days
- Average time to close pull requests: 2 minutes
- Total issue authors: 2
- Total pull request authors: 2
- Average comments per issue: 1.5
- Average comments per pull request: 0.0
- Merged pull requests: 24
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 2
- Average time to close issues: 17 days
- Average time to close pull requests: less than a minute
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 3.0
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- JulienGAMartin (1)
- JavierMarcuzzi (1)
Pull Request Authors
- matthewwolak (25)
- qgevoeco (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 526 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
- Total maintainers: 1
cran.r-project.org: gremlin
Mixed-Effects REML Incorporating Generalized Inverses
- Homepage: https://github.com/matthewwolak/gremlin
- Documentation: http://cran.r-project.org/web/packages/gremlin/gremlin.pdf
- License: GPL-3 | file LICENSE
-
Latest release: 1.1.0
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- Matrix * depends
- methods * imports
- nlme * imports