Dear all,

I have an error in the simple prediction function for lm().
Maybe someone experienced the same?

xma <- matrix(data = 0, nrow = 100, ncol = 2)
xma[, 1] <- rnorm(100)
xma[, 2] <- rchisq(100, df = 3)

m1 <- lm(xma[, 1] ~ xma[, 2])
predict(m1, as.data.frame(seq(-13, 13, 0.5)))


Thanks a lot,
Trafim

	[[alternative HTML version deleted]]

