Blog Archives

Which movie is rated better? (Don’t treat ordinal ratings as metric)

December 25, 2017
By
Which movie is rated better? (Don’t treat ordinal ratings as metric)

When deciding what movie to watch online, have you ever considered the star ratings provided by previous viewers? For example, Amazon.com has a 5-star rating system, in which reviewers can give a movie an ordinal rating from 1 star to 5 stars. Here are...

Read more »

The skew-normal distribution in JAGS

December 17, 2017
By
The skew-normal distribution in JAGS

For a project I'm working on, I decided to try the skew-normal distribution to describe residual noise. JAGS does not have the skew-normal built in, so I used the Bernoulli ones trick to express the skew-normal in a JAGS model specification. This blog ...

Read more »

Graphs of imputed censored y values

December 9, 2017
By
Graphs of imputed censored y values

When using JAGS with censored data, the censored values are imputed to be consistent with the parameters of the model and the censoring limits. It's straight forward to record and graph the imputed values. Here are a couple of slides from my workshops ...

Read more »

April and June 2018 workshops doing Bayesian data analysis

October 23, 2017
By

2018 April 26 - 28. Stats Camp, Brisbane, Australia. Taught by Prof. Michael Kalish. 2018 June 11 - 15. Stats Camp, Albuquerque, New Mexico. Taught by Prof. Michael Kalish.2018 June 18 - 22. Global School for Empirical Research Methods, St. Gallen, Swi...

Read more »

DBDA2E Scripts in Stan

July 4, 2017
By
DBDA2E Scripts in Stan

Many more scripts from DBDA2E have been re-written for Stan, by Prof. Joseph Houpt at Wright State University. Joe has posted his scripts at GitHub: https://github.com/jhoupt/DBDA2EstanTo run Joe's Stan scripts you will need the usual other supporting ...

Read more »

DBDA2E Scripts in Stan

July 4, 2017
By
DBDA2E Scripts in Stan

Many more scripts from DBDA2E have been re-written for Stan, by Prof. Joseph Houpt at Wright State University. Joe has posted his scripts at GitHub: https://github.com/jhoupt/DBDA2EstanTo run Joe's Stan scripts you will need the usual other supporting ...

Read more »

Difference of means for paired data: Model the mean of the differences or the joint distribution

June 29, 2017
By
Difference of means for paired data: Model the mean of the differences or the joint distribution

I'm regularly asked about how to analyze the difference of means for paired data, such as pre-treatment and post-treatment scores (for the same subjects), or, say, blood pressures of spouses, etc. The usual approach is merely to consider the difference...

Read more »

Difference of means for paired data: Model the mean of the differences or the joint distribution

June 29, 2017
By
Difference of means for paired data: Model the mean of the differences or the joint distribution

I'm regularly asked about how to analyze the difference of means for paired data, such as pre-treatment and post-treatment scores (for the same subjects), or, say, blood pressures of spouses, etc. The usual approach is merely to consider the difference...

Read more »

Bayesian estimation of correlations and differences of correlations with a multivariate normal

June 26, 2017
By
Bayesian estimation of correlations and differences of correlations with a multivariate normal

Within days of each other I received two emails asking about Bayesian estimation of correlations and differences of correlations. Hence this post, which presents an implementation in JAGS and R.Traditionally, a joint distribution of several continuous/...

Read more »

Posterior distribution of predictions in multiple linear regression

June 11, 2017
By
Posterior distribution of predictions in multiple linear regression

In a previous post I showed how to compute posterior predictions from multiple linear regression inside JAGS. In this post I show how to do it after JAGS, in R.There are trade-offs doing it in JAGS or afterwards in R. If you do it in JAGS, then you kno...

Read more »


Subscribe

Email:

  Subscribe