search for: yilong

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

Did you mean: yalong
2012 Jul 13
3
R2OpenBUGS quesion
...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,+ n.chains=3, n.iter=5000)Error in matrix(, n.sims, n.parameters) : invalid 'nrow' value (too large or NA) [[alternative HTML version deleted]]
2010 Oct 31
2
transfer string to expression
Dear all: when I use parse() there is some problems. Below is an example: b0<-1 b1<-1 x<-1 str2expr<-function(x){eval(parse(text=x))} test1<-"b0+b1*sqrt(x)" test2<-"b0+b1" str2expr(test1) str2expr(test2) it can work well for test2 but not for test1. Could you tell me how to fix this problem or is there other more stable method to transfer an string to