Error in eval(predvars, data, env)

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

outloglog <- lm(log(Lab) ~ log((Field)), data = pipeline)

your columns may be in the dataset, but tell lm what dataset you want it to look in :smiley:

Thank you so much! You're a rock star!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.