standardizing data

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

standardizing data

Christian Jones-2
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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: standardizing data

Peter Dalgaard
Christian Jones <[hidden email]> 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
> Christian

What 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
~~~~~~~~~~ - ([hidden email])                  FAX: (+45) 35327907

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: standardizing data

Will Terry
In reply to this post by Christian Jones-2
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
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting- 
> guide.html
>

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html