Try ?df to see what you did wrong!
Always use conflicts() before posting to see what you have overridden.
R normally allows you to get away with masking objects, but in this case
it is the R object that is masking yours.
On Sun, 26 Dec 2004, Klaus Thul wrote:
am I doing something wrong, or is thi
Dear all,
am I doing something wrong, or is this a bug (R 2.0.1 & 1.9.1,
linux&windows):
> library(MASS)
> df <- data.frame(x = rnorm(100), y = rnorm(100), z = rnorm(100))
> f <- lm(x ~ y + z, data = df)
> stepAIC(f, scope = list(upper = ~y * z, lower = ~1))
Start: AIC= -16.5