search for: bootstrap_sample_

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

2017 Aug 19
2
bootstrap subject resampling: resampled subject codes surface as list/vector indices
...from the selected subjects for(j in 1:length(sample.subjects)){ inter.set = rbind(inter.set, data[data$subj == sample.subjects[j],]) } #procustean bed of target sample size final.set = inter.set[1:target.sample.size,] write.csv(final.set, paste("bootstrap_sample_", iter,".csv", sep=""), row.names=FALSE) cat("Bootstrap Iteration", iter, "completed\n") #clean up sample.size for next bootstrap iteration sample.size = 0 } My problem is that when I sample the second subject onward and add...
2017 Aug 19
0
bootstrap subject resampling: resampled subject codes surface as list/vector indices
...or(j in 1:length(sample.subjects)){ > > inter.set = rbind(inter.set, data[data$subj == sample.subjects[j],]) > > } > > #procustean bed of target sample size > final.set = inter.set[1:target.sample.size,] > > write.csv(final.set, paste("bootstrap_sample_", iter,".csv", sep=""), > row.names=FALSE) > cat("Bootstrap Iteration", iter, "completed\n") > > #clean up sample.size for next bootstrap iteration > sample.size = 0 > > } > > My problem is that when I sam...