The copy()
function for a PMXStanModel
object aims to provide a convenient way for the
following scenarios:
- Fitting the same model to different datasets. With each copy of the model, a new input dataset
can be used for generating samples, and each will result in a PMXStanFit
objects. These results
can then be compared and summarized.
- An exploratory, stage-wise modeling exercise, commonly used when current knowledge is not sufficient
to choose among options through the model building process. One can start from a copy of the same
"parent" version of the model, make specific changes one at a time, and later make a choice based on
certain criteria to compare different fittings.