coef.Bayesthresh: Coefficients for the fixed effects model

Description Usage Arguments Examples

View source: R/coef.Bayesthresh.R

Description

Extract the fixed effects of model. Coefficients correspond to columns of space spanned by the columns of design matrix for fixed effects

Usage

1
2
	## S3 method for class 'Bayesthresh'
coef(object, HPDinterval=FALSE, prob=0.95,...)

Arguments

object

is an object of class "Bayesthresh"

HPDinterval

If HPDinterval=TRUE, return the credibility interval for fixed effects model. By default is FALSE. See package coda

prob

A numeric scalar in the interval (0,1) giving the target probability content of the intervals. The nominal probability content of the intervals is the multiple of 1/nrow(obj) nearest to prob

...

no usage

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# Not run
data(sensory)

Consumer <- factor(sensory$consumer)
Sacarose <- factor(sensory$sacarose)

#### Model 
# Not run
dex1 <- Bayesthresh(cor ~ (1|Consumer) + Sacarose, burn = 0,
																			jump = 1, ef.iter = 10, data=sensory, Write=TRUE) 

coef(dex1)
coef(dex1, HPDinterval=TRUE)

# Not run
dex2 <- Bayesthresh(cor ~ (1|Consumer) + Sacarose, burn = 0,
																			jump = 1, ef.iter = 10, data=sensory) 
coef(dex2)

Bayesthresh documentation built on May 30, 2017, 6:24 a.m.