search for: codaindex

Displaying 8 results from an estimated 8 matches for "codaindex".

Did you mean: cdindex
2007 Sep 25
6
R2Winbugs problem
Just while I use R2Winbugs, the following error will be presented. Please tell me how to cope with. Error in file(file, "r") : unable to open connection In addition: Warning message: cannot open file 'codaIndex.txt', reason 'No such file or directory' in: file(file, "r") -- View this message in context: http://www.nabble.com/R2Winbugs-problem-tf4517326.html#a12885666 Sent from the R help mailing list archive at Nabble.com.
2012 Jan 02
0
Reading mcmc/coda into a big.matrix efficiently
...the size of the skip value, so that the time required is proportionate to the number of variables. Any tips on how to do this faster / more efficiently? I'm using a unix system, so a solution that uses grep/sed Here's some sample code of how I do it now: index = read.table("Big.CODAindex.txt", col.names = c("var","start","end")) n = index[1,3] - index[1,2] + 1 k = dim(index)[1] X = filebacked.big.matrix( nrow = n, ncol = k, backingfile = "Big.CODA.backing") for(i in 1:k) { X[,i] = read.table("Big.CODAchain1.txt", skip =...
2012 Jul 13
3
R2OpenBUGS quesion
Dear All: Could anybody help me figure out why I get the Error message below while I running the example code of bugs() function in R2OpenBUGS packages? I have tried the code both in Win 7 and Ubuntu 12.04, but they show the same message. My R version is 2.15.1 in win7 and 2.15.0 in Ubuntu. Many thanks ! Best, Yilong > schools.sim <- bugs(data, inits, parameters, model.file,+
2007 Apr 29
0
Going from Coda Files to R2WinBUGS
...mple, it is 1000 bugs.fit <- R2WinBUGS:::bugs.sims(varNames, n.chains=n.chains, n.iter=n.iter, n.burnin=n.burnin, n.thin=n.thin, DIC = DIC) class(bugs.fit)<-"bugs" bugs.fit$isDIC <- FALSE #clean up the new coda files if(file.rm==T){ file.remove("codaIndex.txt") for(i in rownames(index.table)){ file.remove(paste("coda",i,".txt",sep="")) } } return(bugs.fit) } codaSplit<-function(codafile="jags.out", indexfile="jags.ind"){ index.table<-read.table(indexfile) write.table...
2006 Apr 05
2
R2WinBUGS error
Dear R-help, I'm using the R2WinBUGS package and getting an error message: Error in file(file, "r") : unable to open connection In addition: Warning message: cannot open file 'codaIndex.txt', reason 'No such file or directory' I'm using R 2.2.1 and WinBUGS 1.4.1 on a windows machine (XP). My R code and WinBUGS code is given below. The complete WinBUGS program executes correctly in WinBUGS however I'm generating some of my inits using WinBUGS so I may be maki...
2005 Sep 22
1
R2WinBUGS: Data loading error
...ically correct data(C:/Documents and Settings/Daikon/Roche/data.txt) expected key word structure compile(7) ...(and of course nothing works after that) and when I close WinBUGS i get: Error in file(file, "r") : unable to open connection In addition: Warning message: cannot open file 'codaIndex.txt' Does anyone know what this 'expected key word structure' means? This is my R code (and I guess my model file is ok): modelA <- c("C:/Documents and Settings/Daikon/Roche/pop_model.txt") n <- length(unique(subsetA$subject)) #number of subjects nt...
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 <-
2006 Apr 06
0
R2WinBUGS erro
Dear R-help, I'm using the R2WinBUGS package and getting an error message: Error in file(file, "r") : unable to open connection In addition: Warning message: cannot open file 'codaIndex.txt', reason 'No such file or directory' I'm using R 2.2.1 and WinBUGS 1.4.1 on a windows machine (XP). My R code and WinBUGS code is given below. The complete WinBUGS program executes correctly in WinBUGS however I'm generating some of my inits using WinBUGS so I may be ma...