On Sat, May 18, 2013 at 7:05 AM, Stephen Milborrow mi...@sonic.net wrote:
Paul Johnson pauljoh...@gmail.com wrote:
m1 - lm(log(y) ~ log(x), data = dat)
termplot shows log(y) on the vertical. What if I want y on the vertical?
plotmo in the plotmo package has an inverse.func argument,
so
Paul Johnson pauljoh...@gmail.com wrote:
m1 - lm(log(y) ~ log(x), data = dat)
termplot shows log(y) on the vertical. What if I want y on the vertical?
plotmo in the plotmo package has an inverse.func argument,
so something like the following might work for you?
library(MASS)
library(plotmo)
Paul,
Inverting log(y) is just the beginning of the problem, after that you need to
teach predict.lm() that E(y |x) = exp(x'betahat + .5*sigmahat^2) and then
further
lessons are required to get it to understand how to adapt its confidence and
prediction bands… and then you need to generalize
3 matches
Mail list logo