Hello R team, I??m looking for a way to standardize (z transformation= standard deviation 1 and mean 0) a row of x y coordinates in order to conduct a trend analysis. Does anyone know the command in R? many thanks for help in advance Christian
Christian Jones <ccatj at web.de> writes:> Hello R team, > I??m looking for a way to standardize (z transformation= standard deviation 1 and mean 0) a row of x y coordinates in order to conduct a trend analysis. Does anyone know the command in R? > many thanks for help in advance > ChristianWhat do you mean be "a row of x y coordinates"?? An N x 2 matrix? scale() could well be the answer. -- O__ ---- Peter Dalgaard ??ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Hey there, Did you try "scale(x)"? This centers and scales the data in a matrix x. Will On Feb 19, 2006, at 1:05 PM, Christian Jones wrote:> Hello R team, > I?m looking for a way to standardize (z transformation= standard > deviation 1 and mean 0) a row of x y coordinates in order to > conduct a trend analysis. Does anyone know the command in R? > many thanks for help in advance > Christian > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting- > guide.html >