Displaying 2 results from an estimated 2 matches for "codafile".
2007 Apr 29
0
Going from Coda Files to R2WinBUGS
...is so.
The code for the method is as follows. Any thoughts would be greatly
appreciated, and if this works out, feel free to use it yourself!
Could be quite useful!
-Jarrett
#note, the test run was something along the lines of c.bugs<-coda2bugs
(n.burnin=1000)
coda2bugs<-function(codafile="jags.out", indexfile="jags.ind",
n.chains=1,
n.iter=NA, n.burnin=NA, n.thin=1, DIC=FALSE, file.rm=T, ...){
require(R2WinBUGS)
#first, split up the coda file for R2WinBUGS
codaSplit(codafile, indexfile)
#get the parameter names
index.table<-read.table...
2010 Nov 12
1
Problem retrieving data from R2InBUGS
Dear list
I am calling the functiton bugs() provided by R2WinBugs to performs an IRT analysis. The function returns a set of estimated parameters over n replications/iterations. For each replication, two sets of person measures (theta1 and theta2) and two sets of item difficulty parameters (diff1 and diff2) are returned. The code used to obtain these estimates is as follows:
sim <-