[R] linear regression, log-transformation and plotting

2011-09-07 Thread Johannes Radinger
Hello, I've some questions concerning log-transformations and plotting of the regression lines. So far as I know is it a problem to log-transform values smaller than 1 (0-1). In my statistics lecture I was told to do a log(x+1) transformation in such cases. So I provide here a small example to

Re: [R] linear regression, log-transformation and plotting

2011-09-07 Thread John C Frain
I think that you have not understood your lecturer. You can log transform any positive number. You can not log transform a negative number. Adding a constant to a negative number to make it constant before log transformation is sometimes suggested by those who do not understand what they are