[R] standardization

2007-07-13 Thread Amir_17
Hi I have dataframe which contain 5 columns and 1000 records. I want standard each cell. I want range each column between 0 and 1 . I think i must use loop? could you help me? - Moody friends. Drama queens. Your life? Nope! - their life, your story.

Re: [R] standardization

2007-07-13 Thread Prof Brian Ripley
On Fri, 13 Jul 2007, David Barron wrote: Try having a look at the scale and sweep functions. sweep applies to arrays, not data frames, and scale converts to a matrix. For a data frame df2 - df1 df2[] - lapply(df1, function(x) {r - range(x, na.rm=TRUE);

Re: [R] standardization

2007-07-13 Thread David Barron
Try having a look at the scale and sweep functions. David On 13/07/07, Amir_17 [EMAIL PROTECTED] wrote: Hi I have dataframe which contain 5 columns and 1000 records. I want standard each cell. I want range each column between 0 and 1 . I think i must use loop? could you help me?

[R] Standardization Range

2007-03-28 Thread Sergio Della Franca
Dear R-Helpers, I want to perform a standardization of a variable with range method. i.e.: Standardization (range) == (var-min(var))/(max(var)-min(var)) Do you konw how can i develop this? Thank you in advance. Sergio Della Franca [[alternative HTML version deleted]]

Re: [R] Standardization Range

2007-03-28 Thread Stéphane Dray
Hi sergio, Sergio Della Franca wrote: Dear R-Helpers, I want to perform a standardization of a variable with range method. i.e.: Standardization (range) == (var-min(var))/(max(var)-min(var)) Do you konw how can i develop this? As you do ... but don't use var which is the name of

Re: [R] Standardization Range

2007-03-28 Thread Dimitris Rizopoulos
://med.kuleuven.be/biostat/ http://www.student.kuleuven.be/~m0390867/dimitris.htm - Original Message - From: Sergio Della Franca [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Wednesday, March 28, 2007 11:00 AM Subject: [R] Standardization Range Dear R-Helpers, I want

[R] Standardization

2007-03-27 Thread Sergio Della Franca
Dear R-Helpers, I want to perform a stadardiazation of a variable with mehtod range. How can i achve this results? Thank you in advance. Sergio Della Franca [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

Re: [R] Standardization

2007-03-27 Thread Marc Schwartz
On Tue, 2007-03-27 at 16:52 +0200, Sergio Della Franca wrote: Dear R-Helpers, I want to perform a stadardiazation of a variable with mehtod range. How can i achve this results? Thank you in advance. Sergio Della Franca See ?scale HTH, Marc Schwartz

Re: [R] Standardization

2007-03-27 Thread Bos, Roger
Subject: [R] Standardization Dear R-Helpers, I want to perform a stadardiazation of a variable with mehtod range. How can i achve this results? Thank you in advance. Sergio Della Franca [[alternative HTML version deleted]] __ R-help

Re: [R] Standardization

2007-03-27 Thread Sergio Della Franca
. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sergio Della Franca Sent: Tuesday, March 27, 2007 10:52 AM To: r-help@stat.math.ethz.ch Subject: [R] Standardization Dear R-Helpers, I want to perform a stadardiazation of a variable with mehtod range

Re: [R] Standardization

2007-03-27 Thread hadley wickham
On 3/27/07, Sergio Della Franca [EMAIL PROTECTED] wrote: Dear R-Helpers, I want to perform a stadardiazation of a variable with mehtod range. How can i achve this results? One way is the rescaler method in the reshape package. It can scale to common range, mean 0 sd 1, or ranks. Compared

Re: [R] Standardization

2007-03-27 Thread Giovanni Petris
] [mailto:[EMAIL PROTECTED] On Behalf Of Sergio Della Franca Sent: Tuesday, March 27, 2007 10:52 AM To: r-help@stat.math.ethz.ch Subject: [R] Standardization Dear R-Helpers, I want to perform a stadardiazation of a variable with mehtod range. How can i achve this results

Re: [R] standardization of values before call to pam() or clara()

2006-06-03 Thread Martin Maechler
Dylan == Dylan Beaudette [EMAIL PROTECTED] on Mon, 22 May 2006 17:33:47 -0700 writes: Dylan Greetings, Experimenting with the cluster package, Dylan and am starting to scratch my head in regards to the Dylan *best* way to standardize my data. Both functions can Dylan

[R] standardization of values before call to pam() or clara()

2006-05-22 Thread Dylan Beaudette
Greetings, Experimenting with the cluster package, and am starting to scratch my head in regards to the *best* way to standardize my data. Both functions can pre-standardize columns in a dataframe. according to the manual: Measurements are standardized for each variable (column), by

[R] standardization

2005-05-18 Thread Philip Bermingham
SAS Enterprise Miner recommendeds to standardize using X / STDEV(X) versus [X mean(X)] / STDEV(X) Any thoughts on this? Pros Cons Philip __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] standardization

2005-05-18 Thread Peter Dalgaard
Philip Bermingham [EMAIL PROTECTED] writes: SAS Enterprise Miner recommendeds to standardize using X / STDEV(X) versus [X – mean(X)] / STDEV(X) Any thoughts on this? Pros Cons When??? This makes absolutely no sense out of context. -- O__ Peter Dalgaard Blegdamsvej 3

Re: [R] standardization

2005-05-18 Thread Barry Rowlingson
Peter Dalgaard wrote: SAS Enterprise Miner recommendeds to standardize using X / STDEV(X) versus [X mean(X)] / STDEV(X) This makes absolutely no sense out of context. To paraphrase Tanenbaum: The nice thing about standardization is that there's so many ways to do it. Baz [[ Free On-line

Re: [R] standardization

2005-05-18 Thread Peter Dalgaard
Barry Rowlingson [EMAIL PROTECTED] writes: The nice thing about standards is that there are so many of them to choose from, Curiously enough, the same quote came up today on dk.edb.system.unix in the context of translations. -- O__ Peter Dalgaard Blegdamsvej 3 c/

Re: [R] standardization

2005-05-18 Thread TEMPL Matthias
My thoughts on this is: Do not trust what SAS say´s and least of all what the Enterprise Miner said. Robust Statisticians recommendends to standardize using e.g. (X - median(X)) / ( MAD(X) / 0.675 ) Best, Matthias SAS Enterprise Miner recommendeds to standardize using X / STDEV(X) versus

RE: [R] standardization

2005-05-18 Thread bogdan romocea
@stat.math.ethz.ch Subject: [R] standardization SAS Enterprise Miner recommendeds to standardize using X / STDEV(X) versus [X mean(X)] / STDEV(X) Any thoughts on this? Pros Cons Philip __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman