search for: inits2

Displaying 6 results from an estimated 6 matches for "inits2".

Did you mean: inits
2008 Jan 04
2
R2WinBUGS sending variables as factors
...ot;Month" #Month Taken out so that model runs #create initial values for the coefficients in the model (this is model specific) #construct inits for the three chain inits1 <- list(gamma0 = 0, delta0 = 0,beta1 = 0, alpha1 = 0, alpha2 = 0, index = rbern(J,0.5)+1) inits2 <- list(gamma0 = 0, delta0 = 0,beta1 = 0, alpha1 = 0, alpha2 = 0, index = rbern(J,0.5)+1) inits3 <- list(gamma0 = 0, delta0 = 0,beta1 = 0, alpha1 = 0, alpha2 = 0, index = rbern(J,0.5)+1) inits <- list(inits1,inits2,inits3) ## these data.frames need to be trimmed so that we can send...
2008 Dec 15
3
R2winbugs : vectorization
...t;a3","a4","sigma.y") ## now the bugs call for model 1 proc.time() aasho.1<-bugs(data1,inits1,params1,"aasho1.bug",n.iter=10000,debug=FALSE) proc.time() print(aasho.1,digits=4) now we try a vector approach k<-4 # niv data2<-list(x=x,y=y,z=z,n=n,C=C,k=k) inits2<-function(){ list(a=runif(k),sigma.y=runif(1))} params2<-c("a","sigma.y") ## now the bugs call for model 2 proc.time() aasho.2<-bugs(data2,inits2,params2,"aasho2.bug",n.iter=10000,debug=FALSE) proc.time() print(aasho.2,digits=6) ------------------------ P...
2007 Oct 26
1
bugs() ignores my inits
...clearWD=TRUE, debug=1, DIC=0) display(log) check(J:/project/ps/code/example.txt) model is syntactically correct data(J:/project/ps/code/data.txt) data loaded compile(2) model compiled inits(1,J:/project/ps/code/inits1.txt) this chain contains uninitialized variables inits(2,J:/project/ps/code/inits2.txt) this chain contains uninitialized variables gen.inits() initial values generated, model initialized thin.updater(15) update(500) set(m1) set(m2) set(m3) set(m4) set(sig21) set(sig22) update(500) coda(*,J:/project/ps/code/coda) stats(*) Node statistics node mean sd MC error 2.5% median 97...
2006 Dec 09
1
WinBUGS14 and R
...left pointing arrow <- or twiddles ~ data(C:/Documents and Settings/Chris/data.txt) command #Bugs:data cannot be executed (is greyed out) compile(3) inits(1,C:/Documents and Settings/Chris/inits1.txt) command #Bugs:inits cannot be executed (is greyed out) inits(2,C:/Documents and Settings/Chris/inits2.txt) command #Bugs:inits cannot be executed (is greyed out) inits(3,C:/Documents and Settings/Chris/inits3.txt) command #Bugs:inits cannot be executed (is greyed out) gen.inits() command #Bugs:gen.inits cannot be executed (is greyed out) thin.updater(1) update(5) command #Bugs:update cannot be exec...
2012 Dec 04
1
Winbugs from R
...is syntactically correctdata(C:/Users/Gunal/AppData/Local/Temp/RtmpCYxtDZ/data.txt)data loadedcompile(3)variable n is not definedinits(1,C:/Users/Gunal/AppData/Local/Temp/RtmpCYxtDZ/inits1.txt)command #Bugs:inits cannot be executed (is greyed out)inits(2,C:/Users/Gunal/AppData/Local/Temp/RtmpCYxtDZ/inits2.txt)command #Bugs:inits cannot be executed (is greyed out)inits(3,C:/Users/Gunal/AppData/Local/Temp/RtmpCYxtDZ/inits3.txt)command #Bugs:inits cannot be executed (is greyed out)gen.inits()command #Bugs:gen.inits cannot be executed (is greyed out)thin.updater(1)update(500)command #Bugs:update cannot...
2009 Jul 16
1
Error with r2winbugs
...ata(C:/DOCUME~1/CHRIST~1/LOCALS~1/Temp/Rtmpyg7eDj/data.txt) command #Bugs:data cannot be executed (is greyed out) compile(3) inits(1,C:/DOCUME~1/CHRIST~1/LOCALS~1/Temp/Rtmpyg7eDj/inits1.txt) command #Bugs:inits cannot be executed (is greyed out) inits(2,C:/DOCUME~1/CHRIST~1/LOCALS~1/Temp/Rtmpyg7eDj/inits2.txt) command #Bugs:inits cannot be executed (is greyed out) inits(3,C:/DOCUME~1/CHRIST~1/LOCALS~1/Temp/Rtmpyg7eDj/inits3.txt) command #Bugs:inits cannot be executed (is greyed out) gen.inits() command #Bugs:gen.inits cannot be executed (is greyed out) thin.updater(1) update(5) command #Bugs:update...