Question: t-test for microarray analysis in R
gravatar for gladnovin
6 days ago by
gladnovin0 wrote:

HI, I have a code , I dont know if the code exactly falls for paired t test or not? <- c(0, 0, 1,1)
ttest = function(x) {
  tt = t.test(x[ == 0], x[ == 1])
  return(c(tt$statistic, tt$p.value))
R • 106 views
ADD COMMENTlink modified 6 days ago by Kevin Blighe14k • written 6 days ago by gladnovin0

No, look here:

t.test(..., ..., paired=TRUE)

In this example, though, you are literally just comparing 2 values versus 2 values - makes no sense (?). Whatever is in the object x, you will only be taking index 1-4 from it.

Can you please explain what you are aiming to do? For microarray data, the common (and I would say standardised, at this stage) method to use is limma:

ADD REPLYlink written 6 days ago by Kevin Blighe14k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1546 users visited in the last hour