search for: bootmean

Displaying 3 results from an estimated 3 matches for "bootmean".

Did you mean: boolean
2008 Apr 13
0
R project
...bservations if(test=="t"){ #t-test res<-t.test(dat,alternative="two.sided",mu=H0) } else if(test=="Wilcoxon"){ res<-wilcox.test(dat,alternative="two.sided",mu=H0) } else { nboot<-(K-1) n<-length(dat) bootmean<-NULL for(i in 1:nboot){ rdata<-sample(dat,n,replace=T) bootmean[i]<-mean(rdata) } nlo<-round((nboot+1)*(alpha/2)) nhi<-round((nboot+1)*((1-alpha)/2)) bootmean<-sort(bootmean) low<-bootmean[nlo] high<-bootmean[nhi]...
2012 Sep 13
2
Missing Values
I am using bootstrap and cannot figure how to tell R to ignore missing values (NA) I tried this syntax and it did not work. The name of the file is banks the column two. bootmean(banks$two,na.rm = True, conf = 90,nrep = 1000) -- View this message in context: http://r.789695.n4.nabble.com/Missing-Values-tp4643059.html Sent from the R help mailing list archive at Nabble.com.
2007 Nov 01
1
loops & sampling
...vector(length=nboot) for(i in 1:nboot){ rdata <- sample(abc3,n,replace=T) abc4 <- as.data.frame(t(as.matrix(data.frame(rdata)))) model <- lm(asin(sqrt(abc4$y/100)) ~ I(abc4$x1^2) + abc4$x2) boot.cor[i] <- cor(abc4$y, model$fit)} boot.cor } bt.cor <- npboot.function(nboot=10) bootmean <- mean(bt.cor) Any assistance would be greatly appreciated, also the sooner the better as we are under pressure to reach a conclusion. Cheers, Garth [[alternative HTML version deleted]]