fit<-glm(Direction~Lag1+Lag2+Lag3+Lag4+Lag5+Volume,family = "binomial",data = Weekly)
then it comes out this warning error information as same as the topic
Error in factorial(n) : argument "n" is missing, with no default.
I found whenever I use the function glm() and family="binomial", this error exists, if family="poisson", it's fine. Help! Thx in advance!