11.07.2015 Views

statisticalrethinkin..

statisticalrethinkin..

statisticalrethinkin..

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

15.1. MEASUREMENT ERROR 36315.1.2. Error on both outcome and predictor. Adding measurement error to a predictorworks the same way:D est,i ∼ Normal(µ i , σ)[likelihood for outcome estimates]µ i = α + β A A i + β R R est,i [linear model using predictor estimates]D est,i ∼ Normal(D obs,i , D SE,i )R est,i ∼ Normal(R obs,i , R SE,i )α ∼ Normal(0, 10)β A ∼ Normal(0, 10)β R ∼ Normal(0, 10)σ ∼ Cauchy(0, 2.5)And the code below defines the equivalent Stan model.[prior for outcome estimates][prior for predictor estimates]model_code2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!