Skip to content

Multidimensional correlation matrix question

4 messages · Bert Gunter, John Kane, Tanushree Tunstall

#
Hello,

I previously sent this message which was stripped off due to HTML mail. Sorry!

Thanks.

Hello All,
I am new to the list. I have been learning to use R recently and its been
great to see so much help available.

However I must admit, I have stumbled upon a problem with correlation
matrices and was hoping if someone could  help.

I have an excel workbook with a sheet per drug.
Each sheet has 40 patients' drug response measured over different time
points (several days).

I have already been able to create a cor() matrix of all the drugs for all
the patients on each day. However I have been asked to prepare a matrix of
all days of all people for all drugs. So since there are 26 drugs, I am
expected to form a  26x26 matrix for all this data.

I am not even sure if this is possible. Can anyone point me in the right
direction?


PS: If I make individual matrix and combine them using cbind(), it is not a
26x26 sqaure matrix.

Any help would be greatly appreciated.

Thanks
#
Have you read "An Introduction to R" (ships with R) or made any other
minimal effort with a beginning R tutorial to learn the language?
Have you read the posting guide or any other previous posts to learn
how to post coherently -- a "small, reproducible example" would be
helpful, for instance.

It certainly does not appear that you have done either. At present,
your query appears unanswerable because we do not know the data
structure of your data. Perhaps that is why you have received no
replies?  I suspect if you go through a tutorial, you will find that
what you wish to do is simple.

-- Cheers,
Bert

On Sat, Feb 16, 2013 at 11:50 PM, Tanushree Tunstall
<tanu at gurukuli.co.uk> wrote:

  
    
#
https://github.com/hadley/devtools/wiki/Reproducibility

John Kane
Kingston ON Canada
____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!