Re: [R] How can we compare two vectors?

2012-08-08 Thread ramakanth reddy
ues that are matching z<-x[x %in% y] > z [1] 5 8 28 29 2.How can we get the non matched elements from both the vectors? z<-setdiff(x,y) > z [1] 30 i hope this will help Regards Ramakanth Reddy Guntuka ---

[R] counting the data in different groups for each row

2012-05-31 Thread ramakanth reddy
Dear R, I have data like this I I D I D D D D D I D I D I D I D I D D D I D D I I I I I I I I D I D I D I I I D I I I D I D I D I D I 0 0 I I I I I I I I I D I D I D I D I I I D I I I D I D I D I D I I I D I I I I I Now for each row i want to make count in groups 2 in each group for all possible

[R] problem with installing rms package

2012-05-25 Thread ramakanth reddy
Hi I am trying to install "rms" package but while installing it shows following error package 'survival' 2.36-2 is loaded, but >= 2.36.3 is required by 'rms' what to do? i am using linux OS I have tried by updated r-base-core but it didnt work regards GRR [[alternative HTML version del

[R] how to calculate risk allele or score allele

2012-05-13 Thread ramakanth reddy
Hello, In a case control study how to calculate the risk allele or score allele. Regards GRR [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gui

[R] require R code for calculating nagelkerke pseudo r2

2012-05-08 Thread ramakanth reddy
Hello, I want to perform nagelkerke pseudo r2 test ... can someone tell me is there any r function or package available for doing it. and also the sample input data how it should be. Regards GRR [[alternative HTML version deleted]] __ R-help