make_stancode(formula, data = NULL, family = "gaussian", prior = NULL,
autocor = NULL, partial = NULL, threshold = c("flexible",
"equidistant"), cov.ranef = NULL, sample.prior = FALSE,
save.model = NULL, ...)
as.data.frame
to a data frame) containing the variables in the model. If not found in data,
the variables are taken from environment(formula)
,
typically tgaussian
brmsprior
objects created by function
set_prior
and combined using the c
method.
A single brmsprior
object may be passed without
~expression
specifying the predictors with
category specific effects in non-cumulative ordinal models
(i.e. in families cratio
, sratio
, or acat
)."flexible"
provides the standard unstructured thresholds and
"equidistant"
restricts the distance between consecutive thresholdsdata
that are used as grouping factors.
All levels of the grouping factor shoulFALSE
.NULL
or a character string. In the latter case, the model code is
saved in a file named after the string supplied in save.model
,
which may also contain the full path where to save the file.
If only a name is given, themake_stancode(rating ~ treat + period + carry + (1|subject),
data = inhaler, family = "cumulative")
make_stancode(count ~ log_Age_c + log_Base4_c * Trt_c
+ (1|patient) + (1|visit),
data = epilepsy, family = "poisson")
Run the code above in your browser using DataLab