If necessary, convert an object to an MCMCState object.
as.MCMCState(s, ctx = NULL)
s | a |
---|---|
ctx | a |
an MCMCState object corresponding to s
. If s
is already
a MCMCState
object, it is returned as is. Otherwise, a
MCMCState
object is constructed from s
and ctx
.