WebBUGS
Conducting Bayesian Analysis Online Using BUGS
WebBUGS
>>
Main page
Recent changes
Syntax
History
Built-in models:Logistic regression
!Code {{ model{ for (i in 1:N){ y[i]~dbern(p[i]) logit(p[i])<-beta0+beta1*(x1[i]-mean(x1[]))+beta2*(x2[i]-mean(x2[])) } beta0~dnorm(0,1.0E-6) beta1~dnorm(0,1.0E-6) beta2~dnorm(0,1.0E-6) exp1<-exp(beta1) exp2<-exp(beta2) } }}
Password
Summary of changes
Powered by
LionWiki
. Last changed: 2014/11/12 02:44
Erase cookies
Syntax
History
WebBUGS