So I have revisited some analysis I did in 2022 as I was rerunning a graph for a publication. However, when I reran my script I got a different result. I have run it on a different laptop and I got a different result AGAIN. I have also run in Google Collab and again, the result was different. Any ideas why?
It's structural topic modelling, on Tweets using date as metadata in the first, and sentiment in the second. Both come back different, but I have only included the one example here.
I would think so. I missed that you had set the seed just before the function call. The type of random number generator called may change over different R versions, so it might be worth checking whether all the places you are running on at the moment have the same version of R and of the relevant packages. If different versions does turn out to be the issue (which honestly would surprise me), you can use RNGversion() to control which random number generator is being used.
This doesn’t seem to have fixed the problem. I have reloaded the old version of each of the packages I’ve used from 2022, and I’m still getting different results.