I keep getting this error:
Error in eval(predvars, data, env)
*For the following code:
a0 = .1444
a1 = 1.6707
w <- 1/(a0 * pipeline$Field ^ a1)
wlmod <- lm(Lab ~ Field, data = pipeline, weights=w)
summary(wlmod)
outloglog <- lm(log(Lab) ~ log((Field)))
summary(outloglog)
head(pipeline)
The columns exist in the data as I checked it using the head() function. It gives the complete summary; however, the error pops up using the outloglog code. I am using the Faraway package