<stanout_new.txt><model2.jags><model2.stan>
I'm curious about what's going on here conceptually.
With the Matt trick, you sample
e_u ~ normal(0,1)
and then set:
u <- u0 + sigma * e_u
u0, sigma, and e_u all have low n_eff (< 70)
whereas u has a high n_eff (2,000).
Is it the extra variability of the three variables combined
that gives u relatively low autocorrelation?
pairs(model2, pars = c("u0", "sigma"), chain_id = c(1,2))--
You received this message because you are subscribed to the Google Groups "stan users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
<new_comparison.xls><pairs.pdf><scatter.jpg><trace.pdf>
--
You received this message because you are subscribed to the Google Groups "stan users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
<new_comparison.xls><pairs.pdf><scatter.jpg><trace.pdf>
The blown up pairs.pdf indicates that we perhaps haven't even
fully covered the posterior density properly after 10K samples,
especially looking at u0 vs. bx. But I'm confused as to why
the u0 x sigma scatterplot doesn't look like the transpose of the
sigma x u0 scatterplot.
By default, NULL, which will plot roughly half of the chains in the lower panel and the rest in the upper panel. Otherwise, an integer vector can be passed to select some subset of the chains, of which roughly half will be plotted in the lower panel and the rest in the upper panel. Or a list of two integer vectors, each specifying a subset of the chains to be plotted in the lower and upper panels respectively. The latter option can be useful if you suspect that one chain has failed to converge.
Very good question. Jiqiang and Daniel should know.3. Output was produced using the monitor command so as to ensure comparability between Stan and JAGS, as per the
discussion here. This speaks to Bob's question regarding the calculation of effective sample size. One thing I noticed
is that the monitor results did not match the print results. I might expect this when looking at the JAGS output, but
this also happened in Stan as well. My understanding is that the print output in Stan is based on the summary function.
How do the summary calculations differ from the monitor calculations?
Can you quantify "quite a bit"?Here's my reading of the findings:
1. JAGS outpaces Stan by quite a bit, regardless of how the model is specified in Stan.
And you're sure that Stan itself was compiled using -O3? It
should be automatic if you're using the command-line version
and just call "make". RStan's a bit more probelmatic because your
current R config determines how binary packages get compiled.
We're trying to make this more transparent for the next release.
Better in that it's estimate is closer to the true values?5. To speak to Bob's earlier question, in terms of posterior variance Stan actually seems to be doing slightly better
when we look at the standard deviation.
Was this simulated data you used or real data?
I'm not sure what you mean here. I was talking about estimating the variance,
Things are obviously a bit different when we look at, say, the standard error
of the mean which corrects for effective sample size.
so it'd be the standard error of the variance estimate we'd care about.
The problem is that you can only call set_cppo() after Stan'sI'll be honest and say I'm not sure. I've been running everything using RStan which I installed using the steps shown
on the Getting Started page. For the most part I've been using 64-bit Rstan on a MacBook Pro with set_cppo(mode =
"fast").
installed. What I was asking about is what the situation was when
Stan was installed. Or you can reinstall after using set_cppo(), which
changes the R binary install configuration.
If following the getting started wiki, rstan would be installed under O3 mostly. It is OK that set_cppo is not used the first time of installing rstan when set_cppo is not available; it uses O3 set in the package's Makefile. For installing rstan the first time, other optimization levels other than O3 might be used, but it should be very rare.
Jiqiang