Understanding loess errors in R
问题 I'm trying to fit a model using loess, and I'm getting errors such as "pseudoinverse used at 3", "neighborhood radius 1", and "reciprocal condition number 0". Here's a MWE: x = 1:19 y = c(NA,71.5,53.1,53.9,55.9,54.9,60.5,NA,NA,NA ,NA,NA,178.0,180.9,180.9,NA,NA,192.5,194.7) fit = loess(formula = y ~ x, control = loess.control(surface = "direct"), span = 0.3, degree = 1) x2 = seq(0,20,.1) library(ggplot2) qplot(x=x2 ,y=predict(fit, newdata=data.frame(x=x2)) ,geom="line") I realize I can fix