defaultPrior | R Documentation |
Initialize a prior to be used a prior for BayeGLMlike/BayesGLMlike2
defaultPrior(names)
names |
character vector of coefficients. The '(Intercept)' will be ignored. |
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.
dp <- defaultPrior('Stim.ConditionUnstim')
## Not run:
data(vbetaFA)
zlmVbeta <- zlm(~ Stim.Condition, vbetaFA, method='bayesglm', coefPrior=dp)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.