stephenslab / susieR

R package for "sum of single effects" regression.
https://stephenslab.github.io/susieR
Other
169 stars 42 forks source link

How to get regression coefficients from susie? #210

Closed garyzhubc closed 6 months ago

garyzhubc commented 6 months ago

I'd like to know whether my variants is positive or negatively related to a phenotype. How can I assess this from susieR?

garyzhubc commented 6 months ago

Or, a set is positive or negatively related.

garyzhubc commented 6 months ago

Right now I'm using:

susie_plot(sus, x="index", y="PIP", b = (sus$pip)>0.6 & apply((sus$mu>0)[apply(sus$alpha, 2, which.max),],2,max))

Is it reasonable?

gaow commented 6 months ago

For coefficients you should use coef(fitted) where fitted is the output of susie() or susie_rss()