Comment kassambara Administrator #130 09/23/2016 at 08h04 Please try the following R script and let me know if it works: Code R : x <- 1:100 y <- x^2 + 2*x plot(x, y, log = "xy") model = lm(log(y) ~ log(x)) lines(x, exp(predict(model, newdata=list(x=x))) ,col = "red") Best, A>
Comment hamilthj Member #129 09/22/2016 at 20h04 Does anyone know how to fit a linear regression to a graph with log transformed axes? using the untf function hasn't worked for me.
Comments