[R] Bootstrap

Marcioestat marcioestat at POP.COM.BR
Tue Oct 21 23:23:38 CEST 2008


Hi listers,
I've been work on a bootstrap estimator and I don't know how to make a
certain manipulation at the data.
As an example I have the following data and samples... I need now to
identify the vector in wich I sampled the id, I mean that I have to merge
the files having the key as the id of the samples in order to find the
vector that were selected.
Thanks in advance,
Márcio

id<-seq(1:49)
x<-runif(49)
u<-runif(49)
data<-cbind(id,x,u)
B<-10
sampling<-lapply(1:B, function(i) sample(id, replace=T))

-- 
View this message in context: http://www.nabble.com/Bootstrap-tp20099684p20099684.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list