[R] Help in using PCR

From: Jason Lee <huajie.lee_at_gmail.com>
Date: Tue, 01 Jul 2008 10:54:26 +1000


Hi,

Currently I have a dataset of 2400*408. And I would like to apply PCR method to study the any correlation between the tests. My current data is in data.frame and I have formed horizontal(1-407) to be the exact data, and (408) to be my results data(Yes and No) I have also binarized these Yes and No to 1 and -1s.

However, when I refer to PCR manual on R, the example of yarn.pcr <- pcr(density ~ NIR, 6, data = yarn, validation = "CV"), I am not sure how can I adapt the command based line to my sample dataset.

It seems that they label each horizontal (columns) as NIR and followed by Density (which is my results data). My doubt is do I have to label these data at the first place? If not, what variables/command that I should put in place of density?

 cancerv1.pcr<-pcr(cancerv1[,1-407],6,data=cancerv1,validation="CV")?

Please advise. Thanks.

        [[alternative HTML version deleted]]



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. Received on Tue 01 Jul 2008 - 00:57:48 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 01 Jul 2008 - 08:31:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive