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
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
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
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
4 matches
Mail list logo