YinLiLin / hibayes

:swimmer: Individual-Level, Summary-Level and Single-Step Bayesian Regression Models for Genomic Prediction and Genome-Wide Association Studies
GNU General Public License v3.0
46 stars 7 forks source link

saving standard errors of variance components and heritability #17

Closed Siavash-cloud closed 1 year ago

Siavash-cloud commented 1 year ago

Hello, I know that your package report standard errors of variance components and heritability in log or console of R studio. So, I wonder how can I get or save standard errors of variance components and heritability as an output for example in a data frame or a table?

Regards, Siavash

YinLiLin commented 1 year ago

Hi Siavash,

Thank you for using hibayes. The latest version on both CRAN and GitHub has returned the sampled values for all unknown parameters, it can be accessed from the list $MCMCsamples, the standard deviation of all estimated unknown parameters ('p') can be obtained by the function apply(fit$MCMCsamples$p, 1, sd).

Best, Lilin

Siavash-cloud commented 1 year ago

Thanks! it works