[R] find the corresponding mean y

2010-01-11 Thread luciferyan
Hello, I have 49 paired data, x, y. I have sampled x (where replacement is true), and find its mean. How can I find the corresponding mean y, which is the paired data of above sample x? Thank you very much, Annie -- View this message in context: http://n4.nabble.com/find-the-corresponding-mean-y

Re: [R] bootstrap help

2010-01-06 Thread luciferyan
I have a similar question. I want to generate list of 50 bootstrap samples, it can be done by: lapply(1:50,function(i){data[sample(nrow(data),size=nrow(data),replace=TRUE),]}) >From these bootstrap samples, I want to work out the Bootstrap estimates, which is E[y]/E[x]. How can I do it? '>> da