search for: rwish

Displaying 2 results from an estimated 2 matches for "rwish".

Did you mean: wish
2010 Apr 08
1
a small question about R with Winbugs
...,-3),S) y=rbind(y1,y2,y3) N=nrow(y) C=6 theta0=as.vector(c(0,0)) S2=matrix(c(1,0,0,2),nrow=2) S3=matrix(c(1,0,0,1),nrow=2) data=list("y","N","C","theta0","S2","S3") inits=function(){list(alpha=rgamma(1,1.5,1),theta=mvrnorm(1,theta0,S2),T=rwish(3,S3),K=6)} dp_norm.sim=bugs(data,inits,model.file="dp_norm.txt",parameters=c("alpha","K"), n.chains=1,n.iter=500,n.burnin=50,n.thin=1,bugs.directory="C:/Program Files/WinBUGS14/",codaPkg=T,debug=T) -- View this message in context: http://n4.nabble.com/...
2007 Jul 24
1
function optimization: reducing the computing time
Dear useRs, I have written a function that implements a Bayesian method to compare a patient's score on two tasks with that of a small control group, as described in Crawford, J. and Garthwaite, P. (2007). Comparison of a single case to a control or normative sample in neuropsychology: Development of a bayesian approach. Cognitive Neuropsychology, 24(4):343?372. The function (see