search for: bsmt

Displaying 1 result from an estimated 1 matches for "bsmt".

Did you mean: bmt
2009 Mar 14
0
[multi-level model] set up categorical variable/indicator?
...689X/ref=pd_bbs_1?ie=UTF8&s=books&qid=1237069199&sr=8-1 ). I add an "region" indicator (has numeric values from 1 to 5) as the varying intercept in my model (I use "county" data in Minnesota [MN] as my county-level indicator and interact it with "basement"(bsmt)) and write my model in Winbugs as: model{ for (i in 1:n){ y[i] ~ dnorm(y.hat[i], tau.y) y.hat[i] <- alpha[region[i]] + beta[county[i]]*bsmt[i] } for (j in 1:J){ alpha[j] ~ dnorm(mu.alpha[j], tau.alpha) } for (k in 1:K){ beta[k] ~ dnorm(mu.beta[k], tau.beta) } mu.y ~ dnorm(0, .0001) tau.y <-...