[R] bootstrapping a matrix and calculating Pearson's correlation coefficient

Liviu Andronic landronimirc at gmail.com
Tue Jan 5 23:45:53 CET 2010


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

[1] http://www.mail-archive.com/r-help@r-project.org/msg65667.html
[2] http://www.statmethods.net/advstats/bootstrapping.html

More information about the R-help mailing list