placeTempersObj <-
with(VShapedFuncGenerator(-13579),
placeTempers(nIters = 10000,
acceptRatioLimits = c(0.5, 0.6),
ladderLenMax = 50,
startingVals = c(0, 0),
logTarDensFunc = logTarDensFunc,
MHPropNewFunc = MHPropNewFunc,
temperLimits = c(1, 5),
ladderLen = 10,
levelsSaveSampFor = seq_len(10),
verboseLevel = 1))
print(placeTempersObj)
print(names(placeTempersObj))
with(placeTempersObj,
{
par(mfcol = c(3, 3))
for (ii in seq_along(levelsSaveSampFor)) {
main <- paste('temper:', round(temperLadder[levelsSaveSampFor[ii]], 3))
plot(draws[ , , ii],
xlim = c(-4, 20),
ylim = c(-8, 8),
pch = '.',
ask = FALSE,
main = as.expression(main),
xlab = as.expression(substitute(x[xii], list(xii = 1))),
ylab = as.expression(substitute(x[xii], list(xii = 2))))
}
})Run the code above in your browser using DataLab