Here are two things to try.
First check the data. There may be a factor that does not have
variation in the sample. For example,
if you had a predictor such as 'present'/'absent', in the current
sample, all of them
may be 'present'.
Second, you can put a 'try' statement in your function.
try(
Hi, everyone:
I am running logistic regression on a bunch of variables using apply
command. But an error occurs, the whole process stops. I am wondering
if anyone knows how to skip this error and to continue the
regression for the rest of variable.
What I did is that first confine a func
2 matches
Mail list logo