When doing a linear regression (lm) multiple times with the same data, I'll sometimes get slightly different coefficients. I assume this is because the fitting function at some point generates and uses random numbers. Is there a way I can force the output to be deterministic? Perhaps by seeding an RNG?
Aucun commentaire:
Enregistrer un commentaire