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 11
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:
http://r.789695.n4.
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,
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
((x-mean(x))/sd(x)
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, self
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:
df<-dataframe(a=c(1,2,3),b=c(4,5,6),c=c(7,
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
unchange
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 try
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 d
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 mailing
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
produc
11 matches
Mail list logo