Comments (2)
Hi,
I am afraid I don't have a ready solution for you, but I will share some thoughts on what you can try.
You can get more controls on timing with verbose
argument. Here, a basic example:
library(lme4qtl)
data(dat40)
my_verbose <- 1 # 1, 2 or 3
gmod <- relmatGlmer(trait1bin ~ (1|ID), dat40, relmat = list(ID = kin2), family = binomial, verbose = my_verbose)
In principle, there is no any limits of the size of covariance matrices. Obviously, the bigger the matrix the slower computation. You should also think about how sparse your matrix is. In our preprint, Supplemental Figure 3 (right now), we showed that passing dense covariance matrices to lme4/lme4qtl is not a good idea in general. However, based on our practical experience, it took us 1-2 hours to analyse 3,300 individuals with relmatLmer
and dense GRM.
Also, I haven't tested relmatGlmer
extensively, but it is known that it generally takes more computation time than lmer
/ relmatLmer
. Perhaps, you can google about your issues in relation to lme4.
As the last comment, I can see that the problem is to separate lme4qtl- vs. lme4-specific issues (dense covariance matrix vs. generalized models). One simple experiment would be to "sparsify" you covariance matrix (i.e. put all matrix elements, which are below some threshold, to zero) and run relmatGlmer
to check the computation time. If it is feasible, that means the dense covariance matrix is an issue.
I hope my 5 cents will help you.
Best,
Andrey
from lme4qtl.
Hello Andrey,
Thanks so much for your input! RelmatGlmer worked after I set all of the matrix elements below 0.1 to zero so the issue is with the dense covariance matrix.
Thanks,
Emily
from lme4qtl.
Related Issues (20)
- assocLMer HOT 2
- "direct" test of SNP in relmatGlmer / relmatLmer HOT 2
- Remove effect of the modeled VCV (e.g., pedigree) from the expected values of y HOT 1
- How to do unstructured and how to do compound symmetry heterogeneous covariance models ?
- Warning for RE variable mismatch in formula and relmat HOT 1
- way to adjust for kinship only? HOT 3
- Details of the Eigenvalue decomposition operation HOT 1
- Multiple matrices as random effects HOT 2
- ICC or h2 for binary response. HOT 1
- Ideas to be update `lme4qtl` due to `rBind()` function HOT 1
- p values for betas HOT 3
- how to apply GRM matrix into longitudinal data? HOT 5
- Negative binomial models HOT 2
- Use matlm for interaction between dependent variable and SNP HOT 2
- PIRLS step-halvings failed to reduce deviance in pwrssUpdate with probit relmatGlmer HOT 4
- cannot coerce type 'closure' to vector of type 'character' HOT 2
- Error in is.nloptr(ret) : objective in x0 returns NA HOT 4
- Predicting new data/unobserved phenotypes HOT 1
- How to generate matrix like kin2? HOT 1
- Checking for Multi-collinearity HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lme4qtl.