what command to use to standardize my data to mean = 0, and SD=1.
the data I want to standardize/centroid is in column format.
So I'm thinking of using:
col.mean.stdised=apply(data.df,2,function(z){z-mean(z)})
but, what command should I use to put my SD =1?
Thanks!
--
View this message in
?scale
HTH,
Jorge
On Sun, May 30, 2010 at 12:20 AM, Philip Wong wrote:
what command to use to standardize my data to mean = 0, and SD=1.
the data I want to standardize/centroid is in column format.
So I'm thinking of using:
col.mean.stdised=apply(data.df,2,function(z){z-mean(z)})
but,
2 matches
Mail list logo