Re: [R] MSE Cross-validation with factor interactions terms MARS regression

2018-10-30 Thread varin sacha via R-help
Dear Prof. Dalgaard, I really thank you lots for your comments and responses. It perfectly works ! Many thanks. Le mardi 30 octobre 2018 à 00:30:11 UTC+1, peter dalgaard a écrit : The two lines did the same thing, so little wonder... More likely, the culprit is that a is assigned in

Re: [R] MSE Cross-validation with factor interactions terms MARS regression

2018-10-29 Thread peter dalgaard
The two lines did the same thing, so little wonder... More likely, the culprit is that a is assigned in the global environment, and then used in a prediction on a subset. Also, - you are defining Training, but as far as I can tell, you're not using it. Not likely to be an issue in itself, but

Re: [R] MSE Cross-validation with factor interactions terms MARS regression

2018-10-29 Thread varin sacha via R-help
Hi Bert, Many thanks, I have fixed it but it still don't work... . Best, Le lundi 29 octobre 2018 à 22:07:26 UTC+1, Bert Gunter a écrit : I did no analysis of your code or thought process, but noticed that you had the following two successive lines in your code: y=Testing$wage y

Re: [R] MSE Cross-validation with factor interactions terms MARS regression

2018-10-29 Thread Bert Gunter
I did no analysis of your code or thought process, but noticed that you had the following two successive lines in your code: y=Testing$wage y=Wage[-sam,]$wage This obviously makes no sense, so maybe you should fix this first and then proceed. -- Bert Bert Gunter "The trouble with having an