From c5f358feab275278fd83bdbb1e1977ea8a1f6a79 Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Mon, 17 Dec 2012 14:23:44 -0500 Subject: [PATCH] updated inhalers model to use categorical properly: bugs_examples/vol1/inhalers --- src/models/bugs_examples/vol1/inhalers/inhalers.stan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/bugs_examples/vol1/inhalers/inhalers.stan b/src/models/bugs_examples/vol1/inhalers/inhalers.stan index 22e6adfe8b1..bd2cd894239 100644 --- a/src/models/bugs_examples/vol1/inhalers/inhalers.stan +++ b/src/models/bugs_examples/vol1/inhalers/inhalers.stan @@ -86,7 +86,7 @@ model { p[i, t, j] <- Q[i, t, j - 1] - Q[i, t, j]; p[i, t, (Ncut + 1)] <- Q[i, t, Ncut]; - response[i, t] - 1 ~ categorical(p[i, t]); + response[i, t] ~ categorical(p[i, t]); } } b ~ normal(0, sigma);