defaultPrior: Initialize a prior to be used a prior for...

Description Usage Arguments Value Examples

View source: R/AllClasses.R

Description

Initialize a prior to be used a prior for BayeGLMlike/BayesGLMlike2

Usage

1

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.

Examples

1
2
3
4
5
6
dp <- defaultPrior('Stim.ConditionUnstim')
## Not run: 
data(vbetaFA)
zlmVbeta <- zlm(~ Stim.Condition, vbetaFA, method='bayesglm', coefPrior=dp)

## End(Not run)

MAST documentation built on Nov. 8, 2020, 8:19 p.m.