Important Note: This package is just an example that I used to study how to create a package and add some elements to the documentation.
In this package, you will find functions that enable the generation of random samples from various distribution functions. The method used to generate these values was implemented using the Inverse Transform Sampling method.
Installation
You can install the development version of genrs from GitHub with:
# install.packages("devtools")
devtools::install_github("wyaravms/genrs")Example
These are some basic examples using the functions available in the genrs package:
Function rburrxii generates random data following a Burr XII distribution with parameters shape1 and shape2.
rburrxii(10, 2, 3)
#> [1] 0.6622819 1.1151069 0.7463375 1.0880695 0.7364627 0.9581563 0.7460538
#> [8] 0.6528588 1.2624069 0.8462232
Function rparetoi generates random data following a Pareto I distribution with parameters scale and shape.
rparetoi(10, 3, 6)
#> [1] 3.258682 3.191228 3.261140 3.466575 3.885335 3.042769 3.402817 3.997748
#> [9] 5.074505 3.833168
Function rloglogis generates random data following a Log-logistic distribution with parameters scale and shape.
rloglogis(10, 3, 6)
#> [1] 2.943345 4.522133 3.289996 1.985151 3.761592 2.312687 3.602403 3.412819
#> [9] 3.064508 3.263536
