Irreproducible code goes nowhere
library(NP)
#> Error in library(NP): there is no package called 'NP'
bw5<-npregbw(formula=,y~x1 +x2+x3+x4+x5,regtype="ll",bwmethod="cv.ls")
#> Error in npregbw(formula = , y ~ x1 + x2 + x3 + x4 + x5, regtype = "ll", : could not find function "npregbw"
## create model
model3 <- npreg(bws=bw5, gradients=TRUE)
#> Error in npreg(bws = bw5, gradients = TRUE): could not find function "npreg"
## create prediction
p8 <- predict(model3,newdata=w_garbage)
#> Error in predict(model3, newdata = w_garbage): object 'model3' not found
See the FAQ: How to do a minimal reproducible example reprex
for beginners.