microeco
microeco copied to clipboard
Query about threads and seeds in cal_powerlaw
Hi. I am asking about how can I add threads and seed parameter in the cal_powerlaw() to help accelarate the calculation and ensure P value from the test consistent among different attempts.
Hi. In previous version, they are not considered and supported. I have updated the package in github and make the parameters pass to bootstrap_p function of poweRlaw package instead of previous fit_power_law function. You can reinstall your package from github to resolve this issue. To use multiple threads and fix seed, please run the function like this
t1$cal_powerlaw(threads = 4, seed = 1)
The threads and seed parameters both pass to bootstrap_p function of poweRlaw package.
Great! I got it. Thanks!