R(ver3.1.1) works, but R(ver3.3.1) fails.
tmp<-dummyVars (~days, data=data1)
predict(tmp, data1)
The following error occurred while executing this predict:
options(contrasts=newCntr): Invalid value for 'contrasts'
As previously mentioned, ver3.1.1 works fine.
Does it mean that the package is not compatible with 3.3.1
The package supports 3.3.1.Can you reproduce the problem data1 and expect a better answer?
I guess options("contrasts")
contains a value that is not the default c("cont.treatment", "cont.poly")
.
If so, resolve with options(contrasts=c("cont.treatment", "cont.poly")
.
© 2024 OneMinuteCode. All rights reserved.