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:> ,-- Bert Gunter Genentech Nonclinical Biostatistics Internal Contact Info: Phone: 467-7374 Website: http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm
https://github.com/hadley/devtools/wiki/Reproducibility John Kane Kingston ON Canada> -----Original Message----- > From: tanu at gurukuli.co.uk > Sent: Sun, 17 Feb 2013 07:50:17 +0000 > To: r-help at r-project.org > Subject: [R] Multidimensional correlation matrix question > > 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 > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.____________________________________________________________ FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!