Hi, I have 49 pairs in my data.frame 'data' x y 76 80 138 143 67 67 29 50 381 464 23 48 37 63 120 115 ... ... how do I get a bootstrap sample of size n=50? i have tried sample(data,size=50,replace=TRUE) and sample(data,replace=TRUE) both didnt seem to work (the latter one only return me with 49 sample) Thanks. casper -- View this message in context: http://n4.nabble.com/bootstrap-help-tp949807p949807.html Sent from the R help mailing list archive at Nabble.com.
Hi? I have a dataframe with x and y in pairs, ( 49 pairs i.e. 49 rows ) x y 76 80 138 143 67 67 29 50 381 464 23 48 37 63 120 115 .... how do i generate 50 Bootstrap samples and corresponding estimates? i have tried sample( data, size=50,replace=T) does not seem to be right Thanks.