Skip to content
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

trouble matching results with those from simple mixed model #104

Open
rkb965 opened this issue Nov 12, 2024 · 0 comments
Open

trouble matching results with those from simple mixed model #104

rkb965 opened this issue Nov 12, 2024 · 0 comments

Comments

@rkb965
Copy link

rkb965 commented Nov 12, 2024

Hi, thank you so much for this valuable package.

(1) How do I specify covariates as adjustment variables without rMVP doing any processing (eg calculating PCs) on them?

When I use a simplified kinship matrix that is valid for lme4, I get nearly identical results between rMVP and lme4 when I do not include additional covariates. However, when I include additional covariates, my results differ substantially. I suspect that I am mis-specifying the rMVP model somehow.

My model is specified like this:

Covariates <- model.matrix.lm(~as.factor(breed)+as.factor(sex)+as.numeric(weight), data=yourdata, na.action = "na.pass")

MVP(
    phe=my_phe,
    geno=my_geno, 
    map=my_map, 
    K = my_kin, 
    CV.MLM = Covariates,
    maxLoop=3, 
    method=c("MLM"), 
    file.output=FALSE, 
    ncpus=1
  )

(2) My kinship matrix was calculated on methylation data and is centered around 0 (IQR -0.2, 0.2) with a few values that are large and positive (up to 15). Do you think this is problematic for model fit? Do you have any suggestions for either my kinship matrix or evaluating model fit?

Thank you so much for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant