PRESS Stat Error - Can't use NA as column index with `[` at position 1

Viewed 2496

I have build the regression model as follows:

model = lm(delay ~ industry + public + quality + finished, data)

and I am trying to run the PRESS statistic function from the qpcR package

> press = PRESS(model, verbose = FALSE)

but I am getting the error -

Error: Can't use NA as column index with [ at position 1. In addition: Warning message: 'newdata' had 1 row but variables found have 40 rows

The thing is that I do not have NAs and have not specified newdata

> which(is.na(data))

integer(0)

Any ideas would be appreciated.

0 Answers
Related