[R] Pairwise comparison test

2023-05-12 Thread Thomas Subia via R-help
Colleague, smokers  <- c( 83, 90, 129, 70 ) patients <- c( 86, 93, 136, 82 ) pairwise.prop.test(smokers, patients) # Output Pairwise comparisons using Pairwise comparison of proportions data:  smokers out of patients    1    2    3 2 1.000 -     - 3 1.

[R] Pairwise comparison, TukeyHSD, glht, ANCOVA

2017-11-03 Thread Wang ChenXi
Hi, I'm wondering if i can use the function "TukeyHSD" to perform the all pairwise comparisons of a "aov()" model with one factor (e.g., GROUP) and one continuous covariate (e.g., AGE). I did for example: library(multcomp) data('litter', package = 'multcomp') litter.aov <- aov(weight ~ gesttime

Re: [R] Pairwise comparison between columns, logic

2013-07-26 Thread biobee
Hi Arun, Many thanks for following this through. Based on your earlier suggestion with CEBPA, I also edited the code and now it seems work (I removed the non exiting names). I looked into the current code that you have sent below and I learnt a few more things. So thank you again. Your skills i

Re: [R] Pairwise comparison between columns, logic

2013-07-26 Thread arun
Hi, Using the example code without removing CEBPA: gset<- read.table("Names.txt",header=TRUE,stringsAsFactors=FALSE)  temp1<- read.table("Data.txt",header=TRUE,stringsAsFactors=FALSE) lst1<-split(temp1,temp1$Names) mat1<-combn(gset[,1],2) library(plyr) lst2<-lapply(split(mat1,col(mat1)),function(x

Re: [R] Pairwise comparison between columns, logic

2013-07-26 Thread arun
Hi Manisha, I didn't run your dataset as I am on the way to college.  But, from the error reported, I think it will be due to some missing combinations in one of the dataset.  For ex. if you run my previous code without removing CEBPA: ie. mat1<- combn(gset[,1],2) lst2<-lapply(split(mat1,col(ma

Re: [R] Pairwise comparison between columns, logic

2013-07-26 Thread arun
HI, Not sure about what your expected output would be.  Also 'CEBPA' was not present in the Data.txt. gset<- read.table("Names.txt",header=TRUE,stringsAsFactors=FALSE)  temp1<- read.table("Data.txt",header=TRUE,stringsAsFactors=FALSE) lst1<-split(temp1,temp1$Names) mat1<-combn(gset[-1,1],2) #rem

Re: [R] Pairwise comparison matrix elements

2012-04-09 Thread David Winsemius
On Apr 9, 2012, at 3:17 PM, Kerapi wrote: Hi!, I'm really hoping someone out there will be able to help me. I recently started my MSc dissertation on Population Projection Matrices, which has been going well until now. I am trying to set-up a general script that does a pairwise comparison

[R] Pairwise comparison matrix elements

2012-04-09 Thread Kerapi
Hi!, I'm really hoping someone out there will be able to help me. I recently started my MSc dissertation on Population Projection Matrices, which has been going well until now. I am trying to set-up a general script that does a pairwise comparison of all elements in my matrices. So for exampl

[R] pairwise comparison

2008-04-02 Thread stephen sefick
analysis of variance was signifigant there are a couple of observations that are NA I would like to do a means seperation TukeyHSD or pairwise.t.test how do I deal with the NAs I will provide the data if necessary -- Let's not spend our time and resources thinking about things that are so littl