Thank you, Linas
--
You received this message because you are subscribed to a topic in the Google Groups "Stan users mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stan-users/mMSr_EyK-hI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stan-users+...@googlegroups.com.
Here, X1 is gamma[i], X2 is the lot-specific alpha[lot[i]], sigma1 and sigma2 are the marginal standard deviations of gamma and alpha (both 1 in your model), mu2 is the mean of prior for alpha (zero), and rho is a correlated parameter that needs to be estimated. The implementation in your model is straightforward if you let go the Matt trick (the multiplication of a N(0,1) random value with some scale parameter). If you want to hold on to the Matt trick because your dataset is small, you would have to figure out some smart coding, which should be doable.
What I meant by "A good starting point..." was to plot the posterior of the replicated data (as mean or median + error bars for 95% credible interval) on the y-axis against the observed data on the x-axis. Telling me that you derived the plots from "Bayesian Modeling with WinBUGS" doesn't really help me understand them. Can you be more specific about what you plotted?
Best,
Luc
Thank you, Linas
--
I think you're fine modeling alpha and gamma as is. Forget my comments about Matt tricks and bivariate distributions. This was started by me misunderstanding what gamma represents.
The link you provided is too much text for me to go through and try to interpret. I can't tell from the code what the plotted variables represent. Can you please paraphrase and explain what you did? Also, providing a plot of the posterior (mean and 95% CI) against observed data, preferably color-coded by lot, would be very helpful to try and help understand the issues of your model.
--
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.
Thank you, LinasOn 7/29/2014 8:48 PM, Luc Coffeng wrote:
Thanks Chris,
This seems confirms my point: the discrepancy metric should include the fitted value of mu for both the replicate and observed data (i.e. not mu_rep in case of mixed prior-posterior predictive checks).
Thanks,
Luc
On Tuesday, 29 July 2014 17:41:24 UTC-7, Chris Roy wrote:
--
You received this message because you are subscribed to a topic in the Google Groups "Stan users mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stan-users/mMSr_EyK-hI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stan-users+...@googlegroups.com.
Thank you, Linas
Thank you, Linas
As an example: here's a link to a paper that compares cross-validation to classic and mixed posterior predictive checks: http://www.ncbi.nlm.nih.gov/pmc/articles/PMC2675184/
Thank you, Linas 765-494-0090
--
Thank you, Linas 765-494-0090
Hi Linus,
Like I said, you should always the fitted mu to calculate your discrepancy test, also for your "new lots". So for mixed prior/posterior predictive checks, the Pearson residuals are: (data_obs - mu_fit) / mu_fit and (data_rep - mu_fit) / mu_fit, where data_rep is based on mu_rep.
Thank you, Linas 765-494-0090
intercept ~ normal (0, 1); d ~ normal (0, 1); l ~ normal (0, 1);
Thank you, Linas 765-494-0090
Thank you, Linas 765-494-0090