[R] Changeing logarithms

Michael Dewey lists at dewey.myzen.co.uk
Sun Nov 19 13:31:30 CET 2017

Dear Liz

I am not sure I completely understand your problem but you can create a 
new variable by going

newVariable <- log(oldVariable)

or in many cases just use log(oldVariable) where you previously used 


On 19/11/2017 00:21, Aino Rprogram wrote:
> Hi!
> I'm using a large panel data, and now I have faced some difficulties with
> my analysis. The predictors are not normally distributed and there are
> quite many outliers (some of them are influential though).
> I have tried to change the logarythm, but i'm not sure, how to do that. I
> want also draw a plot picture in which logarythms of predictors x and y are
> changed. How could I do that?
> Thanx before-hand!
> Liz
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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-contained, reproducible code.


More information about the R-help mailing list