snaketron / genphen

Tool for genome wide association studies with Bayesian inference and statistical learning
5 stars 2 forks source link

predict function in the genphen package #3

Open Spatial-R opened 4 years ago

Spatial-R commented 4 years ago

Dear. Thanks again for your nice work on the genphen package.

I wonder whether there is a function we can use to predict the phenotype based on the genotype?

I know that the posterior distribution was stored when running the runGenphen function. If there is a predict function, such as predict function in the linear regression model (lm), it is more convenient for the users to do further analysis.

snaketron commented 4 years ago

Good idea, will try to add this functionality for the next release.

Spatial-R commented 3 years ago

Hello, is the predict function in the package now?

snaketron commented 3 years ago

Sorry, not implemented yet. Unfortunately I do not have time atm to do this.

I would suggest transitioning to state-of-the-art tools for Bayesian glm analyses such as brms or rstanarm (predict should be implemented in these methods).