Description Usage Arguments Value Examples
Perform Random generation for a shifted distribution
1 |
dist |
character string indicating distribution name. It can be set as:
|
numeric vector of random generated values from a specified distribution
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Binomial Distribution
rb <- rshift("binom")
set.seed(1)
zero_shift <- rb(n = 10000, size = 6, prob = 0.5, shift = 0)
zero_shift
set.seed(1)
one_shift <- rb(n = 10000, size = 6, prob = 0.5, shift = 1)
one_shift
set.seed(1)
two_shift <- rb(n = 10000, size = 6, prob = 0.5, shift = 2)
two_shift
# Weibull Distribution
rw <- rshift("weibull")
set.seed(1)
zero_shift <- rw(n = 1000, shape = 1.4, scale = 3, shift = 0)
zero_shift
set.seed(1)
one_shift <- rw(n = 1000, shape = 1.4, scale = 3, shift = 1)
one_shift
set.seed(1)
two_shift <- rw(n = 1000, shape = 1.4, scale = 3, shift = 2)
two_shift
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.