Re: [R] Standardize GLS coefficients in R

2013-07-12 Thread Greg Snow
One fairly easy option is to just center and scale each of the x-variables, then fit your model on the transformed variables. This works best if your x-variables are roughly symmetric mound shaped and could be meaningless if any of the x-variables is highly skewed or has outliers. On Thu, Jul

[R] Standardize GLS coefficients in R

2013-07-11 Thread TomW87
Hello, I have estimated the coefficients for my model using the 'pggls' function from the 'plm' package. Now I want to see the relative influence of those X's. How can some please tell me how to standardize those my results in R? Thank you! -- View this message in context:

[R] standardize columns selectively within a dataframe

2010-09-01 Thread Olga Lyashevska
Dear all, I have a dataframe: df-dataframe(a=c(1,2,3),b=c(4,5,6),c=c(7,8,9),d=c(10,11,12)) I want to obtain a new dataframe with columns a and b being standardized ((x-mean(x))/sd(x)); the other two columns (c,d) I want to leave unchanged. What is the best way to achieve this? I have been

Re: [R] standardize columns selectively within a dataframe

2010-09-01 Thread David Winsemius
On Sep 1, 2010, at 10:35 AM, Olga Lyashevska wrote: Dear all, I have a dataframe: df-dataframe(a=c(1,2,3),b=c(4,5,6),c=c(7,8,9),d=c(10,11,12)) I want to obtain a new dataframe with columns a and b being standardized ((x-mean(x))/sd(x)); the other two columns (c,d) I want to leave

Re: [R] standardize columns selectively within a dataframe

2010-09-01 Thread Adaikalavan Ramasamy
If you want to scale within columns, you could try cbind( scale(df[,1:2]), df[ ,-c(1:2)] ) a b c d 1 -1 -1 7 10 2 0 0 8 11 3 1 1 9 12 and it is data.frame() btw. On 01/09/2010 15:35, Olga Lyashevska wrote: Dear all, I have a dataframe:

Re: [R] standardize columns selectively within a dataframe

2010-09-01 Thread Olga Lyashevska
Thanks! It is exactly what I was looking for! Cheers Olga __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal,

Re: [R] standardize columns selectively within a dataframe

2010-09-01 Thread David Winsemius
On Sep 1, 2010, at 10:42 AM, David Winsemius wrote: On Sep 1, 2010, at 10:35 AM, Olga Lyashevska wrote: Dear all, I have a dataframe: df-dataframe(a=c(1,2,3),b=c(4,5,6),c=c(7,8,9),d=c(10,11,12)) I want to obtain a new dataframe with columns a and b being standardized

Re: [R] standardize columns selectively within a dataframe

2010-09-01 Thread Olga Lyashevska
On Wed, 2010-09-01 at 12:42 -0400, David Winsemius wrote: I suspect you might have tried (df-mean(df))/sd(x) and gotten unsatisfactory results; I know I did. yes, indeed! a few times, but why is that? If you had really wanted to persist and do it from first principles, so to speak, or

[R] standardize

2009-02-09 Thread glenn
Very quick newbie question sorry; How do I standardize a list of data please (other than do the calculation of course). Is there a quick way please ? glenn [[alternative HTML version deleted]] __ R-help@r-project.org

Re: [R] standardize

2009-02-09 Thread patricia garcía gonzález
Hi, Maybe you are looking for scale( x ) Regards Patricia From: g1enn.robe...@btinternet.com To: r-help@r-project.org Date: Mon, 9 Feb 2009 14:09:04 + Subject: [R] standardize Very quick newbie question sorry; How do I standardize a list of data please

[R] standardize ggplot and lattice themes

2008-08-01 Thread baptiste auguie
Dear list, I'm writing a long document (thesis) and as much as I would like to use only ggplot2 for the graphics, some features are still a bit undocumented so I often end up choosing either ggplot2, lattice, or base plots (which i know better) depending on the particular graph to