Lee William
2010-Jan-05 22:27 UTC
[R] bootstrapping a matrix and calculating Pearson's correlation coefficient
Hi All, I have got matrix 'data' of dimension 22000x600. I want to make 50 independent samples of dimension 22000x300 from the original matrix 'data'. And then want to calculate pearsons CC for each of the obtained 50 matrices. It seems it is possible to do this using 'boot' function from library boot but I am not able to figure out how? I am really stuck. Please help! Best Lee [[alternative HTML version deleted]]
Liviu Andronic
2010-Jan-05 22:45 UTC
[R] bootstrapping a matrix and calculating Pearson's correlation coefficient
Hello On 1/5/10, Lee William <leeonweb at gmail.com> wrote:> I have got matrix 'data' of dimension 22000x600. I want to make 50 > independent samples of dimension 22000x300 from the original matrix 'data'. > And then want to calculate pearsons CC for each of the obtained 50 matrices. > It seems it is possible to do this using 'boot' function from library boot > but I am not able to figure out how? I am really stuck. Please help! >Initially consider constructing the bootstrap function on a much smaller scale, with dummy data. For a dummy example on bootstrapping, see one of my old posts [1]. Also, check this Quick-R page [2] and the links at the bottom of the page for various explanations on the procedure. Liviu [1] http://www.mail-archive.com/r-help at r-project.org/msg65667.html [2] http://www.statmethods.net/advstats/bootstrapping.html
Maybe Matching Threads
- Multiple Correlation coefficient (spearman, Kenall)
- Finding the bootstrapped coefficient of variation and the stderr on the CV(boot)
- rpart package, text function, and round of class counts
- Principle component analysis function
- as.dendrogram for DICE coefficient.