hier_fun: Hierarchical prior density function as described in Gerard...

Description Usage Arguments Author(s) References

View source: R/ruvb.R

Description

Hierarchical prior density function as described in Gerard and Stephens (2021)

Usage

1
hier_fun(beta_mat, shape_param = 1, rate_param = 1, return_log = TRUE)

Arguments

beta_mat

A matrix. The rows are the coefficients of the difference covariates. The columns are the different genes.

shape_param

A positive numeric. The shape parameter for the gamma prior.

rate_param

A positive numeric. The rate parameter for the gamma prior.

return_log

A logical. Should we return the log-density ("TRUE") or the the density ("FALSE")?

Author(s)

David Gerard

References


dcgerard/vicar documentation built on July 7, 2021, 1:08 p.m.