[R] Counting

ufuk beyaztas ufukbeyaztas at gmail.com
Tue Nov 16 23:43:38 CET 2010


thank you very much for your idea,
if i write code as;
my data name is data.

samples<-function(data,num){
resamples<-lapply(1:num,function(i) sample(data,n,replace=TRUE))
list(resamples=resamples)}

>n=10
data<-rnorm(n=10,mean=5,sd=2)
data[1]=100
obj<-samples(data,1000)

i generate 1000 sample, i did not use 'boot'.  100 is a outlier in the data
set and same stuation, some of samples not contain , some of samples contain
once and some of them contain many times. Now can you tell me how i count
how many samples are there not contain any outlier in the 1000 samples?


-- 
View this message in context: http://r.789695.n4.nabble.com/Counting-tp3045756p3045842.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list