Hi, I am working with the NP package, I am trying to develop prediction values from a multivariate dataset (x) and one dimensional (y) value.
My issue is that I am getting the same values as the initial observations (y data) no matter the new data I add. I know this is not normal and but I haven't found information regarding predict on the package documentation. Is there another way to predict new observations when doing nonparametric regression? Below the code
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