Displaying 1 result from an estimated 1 matches for "num07".
Did you mean:
num01
2007 Jun 11
1
Error using mgcv package
...n i use "mgcv" package for implementing GAM. But the same formula works
fine in "gam" package.
> model.gam <- gam(formula = RES ~
> CAT01+s(NUM01,5)+CAT02+CAT03+s(NUM02,5)+CAT04+
+ CAT05+s(NUM03,5)+CAT06+CAT07+s(NUM04,5)+CAT08+s(NUM05,5)+CAT09+
+ CAT10+s(NUM06,5)+CAT11+NUM07+CAT12+CAT13,
+ family = binomial(link = logit), data = train.data,na.action = na.exclude,
+ control = list(epsilon = 0.001,bf.epsilon = 0.001, maxit = 50,
+ bf.maxit = 10, trace = F))
Error in terms.formula(reformulate(term[i])) :
invalid model formula in ExtractVars
And after deleting...