search for: estrazione

Displaying 1 result from an estimated 1 matches for "estrazione".

2011 Nov 12
1
Simulation over data repeatedly for four loops
...]. If I had to use data for the four samples, I would substitute the 1 with a j and replicate a loop four times, but it never worked. My desired final outcome is a matrix with 10000 observations for each couple of extracted samples, i.e. 8 columns of 10000 observations of means. db<-c() # Estrazione dei campioni dai dati di PGG e TRUST estr1 <- c(); estr2 <- c(); m1<-c() m2<-c() tmp1<- data1[[1]][,2]; tmp2<- data2[[2]][,2]; for(i in 1:100){ estr1<-sample(tmp1, 1000, replace = TRUE) estr2<-sample(tmp2, 1000, replace = TRU...