Re: [R] Error in UseMethod("predict")

2021-01-17 Thread varin sacha via R-help
Eric, No problem. Let's see if somebody else has a solution. I have changed the smooth basis from P-splines ('ps') to thin plate ('tp'). It still does not work, but this time I get another error message. ## #Data y=c(34000,45000,19000,48900,65000,67000,78000,9,51000

Re: [R] Error in UseMethod("predict")

2021-01-17 Thread Eric Berger
Hi Sacha, I took a quick look. Sorry, I don't see immediately what is causing the problem. Maybe someone else can help. On Sun, Jan 17, 2021 at 3:22 PM varin sacha wrote: > Dear Eric, > > Many thanks, I correct your 2 points and now I get another error message > (Error in splineDesign(knots, x,

Re: [R] Error in UseMethod("predict")

2021-01-17 Thread varin sacha via R-help
Dear Eric, Many thanks, I correct your 2 points and now I get another error message (Error in splineDesign(knots, x, ord, derivs, outer.ok = outer.ok, sparse = sparse) :   empty 'derivs'). I have googleized and found some hints like (outer.ok=TRUE) but no one seems to work. https://r.789695.n4

Re: [R] Error in UseMethod("predict")

2021-01-17 Thread Eric Berger
Hi Sacha, I never used these packages before but I installed them and tried your code. I have a few observations that may help. 1. the statement ypred = predict(fit18,newdata=Testing) is wrong. Checkout the help page (?robustgam) which shows in the Examples section at the bottom to use so

[R] Error in UseMethod("predict")

2021-01-17 Thread varin sacha via R-help
Dear R-experts, Here below my reproducible R code. I get an error message (end of code) I can't solve. Many thanks for your help. ## #Data y=c(34000,45000,19000,48900,65000,67000,78000,9,51000,32000,54000,85000,38000,76345,87654,90990,78654,67894,56789,65432,18998,789