Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more helpful error message for inappropriate value of nThin #15

Open
johnrbryant opened this issue Jul 23, 2019 · 0 comments
Open

more helpful error message for inappropriate value of nThin #15

johnrbryant opened this issue Jul 23, 2019 · 0 comments

Comments

@johnrbryant
Copy link
Collaborator

fetchSummary(filename)
Error in foldMCMCList(mcmc.list.i) : 'l' has fewer than 2 rows
traceback()
7: stop(gettextf("'%s' has fewer than %d rows", "l", 2L))
6: foldMCMCList(mcmc.list.i)
5: makeGelmanDiag(object = object, filename = filename)
4: .local(object, ...)
3: summary(object = object, filename = filename)
2: summary(object = object, filename = filename)
1: fetchSummary(filename)

model <- Model(y ~ Poisson(mean ~ (age + talb18),
useExpose = FALSE))

dataModels <- list(Model(cen_ins ~ Poisson(mean ~ (talb18+age))),
Model(idi_ins ~ Poisson(mean ~ (talb18+age))))

pop <- cen_ins %>%
collapseDimension("year") %>%
addDimension(name = "year", labels = 2014:2019, dimscale = "Intervals")

pop <- pop+1 %>%
round(0)

datasets <- list(idi_ins = idi_ins, cen_ins = cen_ins)
filename <- "output 23-7 v2"

estimateCounts(y = pop,
model=model,
datasets=datasets,
dataModels=dataModels,
filename = filename,
exposure = NULL,
nBurnin = 1000,
nSim = 1000,
nThin = 1000,
nChain = 3)

Maybe have rule for what constitutes an unlikely nThin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant