Description Usage Arguments Value Author(s) See Also Examples

Provides Halton draws, deviates from a uniform distribution.

1 2 3 |

`n` |
number of prime numbers to be returned (the row number in the value). |

`n.bases` |
numeric. number of bases used. (the column number in the value). |

`bases` |
numeric. Supply specific order numbers for getting primes, see |

`start` |
numeric. from which value in the halton sequence to start. Default is 0, which is actually 0. |

`random.primes` |
logical. if |

`seed` |
set seed for replicability. Default is 17345168. |

`scale.coverage` |
logical. at larger primes not whole [0,1] interval is covered. if |

`shuffle` |
logical. if |

`halton`

returns Halton draws.

Oleg Badunenko <oleg.badunenko@brunel.ac.uk>

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ```
require( npsf )
# obtain first 10 x 7 matrix with the first 7 primes as bases
npsf::halton(10, n.bases = 7)
# obtain first 10 x 7 matrix with the randomly chosen 7 primes as bases
npsf::halton(10, n.bases = 7, random.primes = TRUE, seed = 17345168)
# just one column with desired prime
npsf::halton(10, bases = 1)
# or 2 columns
npsf::halton(10, bases = c(1,7))
# if bases are large
npsf::halton(10, bases = c(1,7)*1000)
# the coverage is not great
npsf::halton(10, bases = c(1,7)*1000, scale.coverage = TRUE)
# reshuffle them, use seed for replicability
npsf::halton(10, bases = c(1,7)*1000, scale.coverage = TRUE, shuffle = TRUE, seed = 17345168)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.