Bayesthresh(formula, data, subset, na.action, A=NULL, algor = list(algorithm="NC", link="Gaussian"), Write=FALSE, priors = list(ru = 10, su = 2, dre = 20, dse = 5), burn = 50, jump = 2, ef.iter = 4000, model=TRUE)~ operator and the terms, separated by +
operators, on the right. The vertical bar character "|" separates an expression for
a model matrix and a grouping factor.formula. By default
the variables are taken from the environment from which Bayesthres is called.lm; see
there for details.FALSE the model frame in slot frame is truncated to zero rows.data that should be used in the fit. This can be a logical
vector, or a numeric vector indicating which observation numbers are
to be included, or a character vector of the row names to be
included. All observations are included by default.
NAs. The default action (na.fail) prints
an error message and terminate if there are any incomplete
observations.
list(algorithm="NC", link="Gaussian").
coda
# Not run
data(sensory)
Consumer <- factor(sensory$consumer) # Random effect
Sacarose <- factor(sensory$sacarose) # Fixed effect
#### Model
# Not run
dex1 <- Bayesthresh(cor ~ (1|Consumer) + Sacarose,
burn = 0, jump = 1, ef.iter = 10, data=sensory)
summary(dex1)
Run the code above in your browser using DataLab