Split a model that has been combined by monty_model_combine()
into
its constituent parts.
Value
An unnamed list of length 2, being the component models. If one model might be the prior it will be listed first.
Details
We assume that a split model can be broken into a "prior" and a "likelihood" if exactly one model:
can be directly sampled from
is not stochastic
consumes all parameters
Typically, it will be the first criterion that will separate a model into prior and likelihood (if you could sample from your likelihood, then you would not use a sampler, which is where we are typically going to perform this action).
If prior_first
is FALSE
we just return the parts.