search for: c1data

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

2009 Mar 11
4
R-help: grep in for loop using index - doesn't work
...compare a string value. It works if I use the actual index value but when I use the for loop index, it doesn't work. Any suggestions plz. Here is the code: data <- read.table(file="Sigmoid.csv", head=FALSE, sep=","); c1 <- data$V1 c2 <- data$V2 c3 <- data$V3 c1data <- data.frame(c1); c2data <- data.frame(c2); c3data <- data.frame(c3); #this works p <- grep("QueryItem",c1data["147",],value=FALSE,fixed=FALSE) print(p) # print 1 #doesn't work i<-147 p1 <- grep("QueryItem",c1data["i",],value=FALSE,fi...
2008 Sep 06
1
Help use try function with boot
...boot? I would to do the bootstraping with a nonlinear model(it works well when R < 1000). But it does not work very well (when R is large) thus I try to use "try" to resolve. I put the try function in two cases: case1: put the try in front of the boot > c1.try<-try(boot(c1data, statistic = c1.fun, R=3999),silent=T) > c1.try [1] "Error in nls(formula = density ~ nmf(time, alpha, delta, psi, tau, gamma), : \n Convergence failure: false convergence (8)\n" attr(,"class") [1] "try-error" case2: put the try in front of the nls c1.nmf<...