defaultPrior: Initialize a prior to be used a prior for BayeGLMlike/BayesGLMlike2
Description
Initialize a prior to be used a prior for BayeGLMlike/BayesGLMlike2
Usage
defaultPrior(names)
Arguments
names
character vector of coefficients. The `(Intercept)` will be ignored.
Value
3d array, with leading dimension giving the prior 'loc'ation, 'scale' and degrees of freedom (df),
second dimension giving the component ('C'ontinuous or 'D'iscrete)
and trailing dimension giving the coefficient to which the prior applies.
The location is initialized to be 0, the scale to 2, and degrees of freedom of 1, following the default of bayesglm
# NOT RUN {dp <- defaultPrior('Stim.ConditionUnstim')
# }# NOT RUN {data(vbetaFA)
zlmVbeta <- zlm.SingleCellAssay(~ Stim.Condition, vbeta.sc, method='bayesglm', coefPrior=dp)
# }