Description Usage Arguments Examples
View source: R/random.effects.R
Extract the random effects of the model of the class Bayesthres
1 | random.effects(object, HPDinterval=FALSE, prob=0.95)
|
object |
is an object of class |
HPDinterval |
If HPDinterval=TRUE, return the credibility interval for fixed effects model.
By default is FALSE. See package |
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 |
1 2 3 4 5 6 7 8 9 10 11 12 | # Not run
data(sensory)
Consumer <- factor(sensory$consumer)
Sacarose <- factor(sensory$sacarose)
#### Model
# Not run
dex1 <- Bayesthresh(cor ~ (1|Consumer) + Sacarose, burn = 0, Write=TRUE,
jump = 1, ef.iter = 10, data=sensory)
random.effects(dex1)
random.effects(dex1, HPDinterval=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.