Does the glmulti function (from the gmulti package) need a set.seed value?

319 Views Asked by At

I am using glmulti to select a set of candidate generalized linear models and my variable importance values and 'best' model keep changing each time I run the model.

I am struggling to understand why this is, does glmulti need a set.seed value to make results reproducible?

Thanks.

1

There are 1 best solutions below

4
On

I believe the glmulti function is in the glmulti package. (You should state this in your question...) If so, the help page says that sometimes it uses a genetic algorithm to find the best model. Those are indeed random algorithms, so you can expect to get an answer that depends on the random number seed.