Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • getprime package now available at SSC

    Thanks to Kit Baum, as always, getprime is now available on SSC. The package includes two commands you can use:
    1. getprime: this command allows you to get the prime number closer to the number you pass. You can get the prime number below the number you pass or above it, depending on what you want/need.
    2. isprime: this command determines whether the number you pass as an argument is a prime number or not. This command is used by getprime but can also be used by itself.
    I had developed these commands a while back because I couldn't find an easy command to just get a prime number from within Stata and they are better in providing precise estimates when determining the number of draws for simulation methods. I hope you find them useful.
    Alfonso Sanchez-Penalver
Working...
X