fastlmm / FaST-LMM

Python version of Factored Spectrally Transformed Linear Mixed Models
https://fastlmm.github.io/
Apache License 2.0
47 stars 11 forks source link

how to calculate phenotypic variance explained #46

Closed carrot881216 closed 6 months ago

carrot881216 commented 6 months ago

Hi,

I want to calculate phenotypic variance explained, but i cannot find beta value/effect value in fastlmm result, How do I get this value? Or through what calculation can we obtain the following results?

SnpWeight SnpWeightSE EffectSize Mixing Nullh2

thanks

CarlKCarlK commented 6 months ago

Greetings and thanks for using FaST-LMM!

We believe that the Effect Size output is the same as PVE. Effect size is:

SNPWeight^2 * "raw" test SNP variance / phenotype variance, where

-- Carl

Carl Kadie, Ph.D. FaST-LMM & PySnpTools Team (Microsoft Research, retired) https://www.linkedin.com/in/carlk/ Join the FaST-LMM user discussion and announcement list via email (or use web sign up)