Open mikegilchrist opened 2 years ago
Following discussion with @mikegilchrist, we will modify src/MCMCAlgorithm.cpp
to include the initial value of the logPosterior and logLikelihood in the traces. For concatenating traces via loadMCMCObject
in R/mcmcObject.R
, we will keep the initial value in the case of i = 1
(i.e. the first file provided), but skip over the initial logPosterior and logLikelihood values in the subsequent runs (i >= 2
) because these should be the same as at the end of the previous run.
When working on testing routines
R/testhat/testMCMCROC.R
Elizabeth and I have run into the following behaviorNote, this only seems to happen if we are using a newly created object. If we resave
mcmcSaved
the results are unaltered.I suspect this has something to do with a non-zero initial_iterations, but am not sure.