plan_update_sequence | R Documentation |
Parameters' update sequence
plan_update_sequence(k, nsteps, fixed, scheme)
k |
Integer. Number of parameters |
nsteps |
Integer. Number of steps. |
fixed |
Logical scalar or vector of length |
scheme |
Scheme in which the proposals are made (see details). |
The parameter scheme
present on the currently available kernels sets the way
in which proposals are made. By default, scheme = "joint"
, proposals are done
jointly, this is, at each step of the chain we are proposing new states for
each parameter of the model. When scheme = "ordered"
, a sequential update schema
is followed, in which, at each step of the chain, proposals are made one
variable at a time, If scheme = "random"
, proposals are also made one
variable at a time but in a random scheme.
Finally, users can specify their own sequence of proposals for the variables
by passing a numeric vector to scheme
, for example, if the user wants to make
sequential proposals following the scheme 2, 1, 3, then scheme must be set to
be scheme = c(2, 1, 3)
.
A logical vector of size nsteps
x k
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.