Z prime vs Z score
1
0
Entering edit mode
9.2 years ago

Hi, I'm hoping someone might be able to help. Is there a simple way in R to calculate Z prime or Z factor vs traditional Z score? I would like to do this for affy data, but only have 4 total samples in my set. Also I have previously been using R-commander for simple statistics- (t-test, anova, Z). I am not very familiar with R, but if I keep the code that commander is running can I just copy and paste directly into R the next time?

R Affymetrix • 6.2k views
ADD COMMENT
1
Entering edit mode
9.2 years ago
Manvendra Singh ★ 2.2k
z-score = (x-μ)/σ
  • x is a raw gene value to be standardized, in a row,( genes are in rows and samples are in columns)
  • μ is the mean of the row;
  • σ is the standard deviation of the row.

In R, just do

(x-mean(x))/sd(x)

You can find R code for Z-prime here

ADD COMMENT
1
Entering edit mode

Some R trivia: the scale function does this for a vector, or down the columns of a matrix.

ADD REPLY

Login before adding your answer.

Traffic: 2047 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6