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!
Sorry to be unclear. I meant that you should open R or RStudio and before doing anything else ("new session"), cut and paste the code. The stats::glm function does not return this error; other packages' glm function might. That's what I meant by namespace.