# \donttest{
ck <- tempfile(fileext = ".rds")
data(YX_bin_list)
# short run with very-aggressive max_seconds to force early termination
fit1 <- lame(YX_bin_list$Y, YX_bin_list$X, family = "binary", R = 0,
nscan = 5000, burn = 50, odens = 5,
checkpoint_path = ck, checkpoint_every = 50L,
max_seconds = 0.5, verbose = FALSE)
if (isTRUE(fit1$terminated_early)) {
fit2 <- lame_resume(ck, nscan_more = 200)
dim(fit2$BETA)
}
# }
Run the code above in your browser using DataLab