-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lme4qtl compared to lmekin? #3
Comments
Hi, I added scripts related to your problem in this commit. Basically, I just considered a single random effect, and it seems the outputs are now more consistent. I am not an experienced user of neither pylogenetic data or visreg. I also tried lmekin a little. My initial guess is that you've might misused lmekin (its argument
I don't remember "why", by the syntax with Here results for your analysis go:
The estimates are more consistent, and the differences are due to the fact that lme4qtl did slightly a better job based on It would be nice if you can explore further on the correct syntax of using lmekin for two-random-effects models. Is the agreement between lme4qtl and lmekin for one-random-effect model OK for you? You also might be interested in Best, |
Hi, It seems I fixed the issue, which actually was a part of lmekin functionality. One needs to take a special care of the order in two variables: id grouping variable (species) and rownames/colnames of the covariance matrix ( The code needed to make lmekin working properly:
You can also take a look at the R file I created in the last commit 02-check-ids.R. I guess your original example should work now. Best, |
Hi! Oh, that's interesting. Thank you so much for helping me figure out what caused the difference! All the best! |
I am really happy that I recently found your package lme4qtl. This seems to be exactly the package I have hoped for! So far, I have used the function lmekin from package coxme to model data with phylogenetic covariance matrix to account for species independence, but that function is not well developed (e.g not able to plot, predict). My only concern is that lme4qtl gives a bit different model parameters than lmekin. Most notably, the estimates and standard errors of the variables directly connected to species identity, such as mean body mass of species, are 2-3 times higher than in lmekin.
For example, it seems a bit odd that the model output from lme4qtl indicates a significant interaction between mass and habitat but the confidence bands for mass are so wide that this makes the interaction hard to believe.
Do you know what could be the reason for the large difference between lme4qtl and lmekin? Is one of them wrong or which package should I prefer for using with my type of data?
I will send my data sample, phylogenetic tree, and code by e-mail.
The text was updated successfully, but these errors were encountered: