Description Usage Arguments Details Value
Auxiliary functions that help automate the process of random number generation or pdf, survival function or hazard rate functions
1 2 3 4 | RdistSwitch(dist, SampleSize, par1, par2)
PdfSwitch(xout, dist, par1, par2)
CdfSwitch(xout, dist, par1, par2)
HazardRate(xout, dist, par1, par2)
|
dist |
A string. Corresponds to one of weibull, lognorm, chisquare, exponential, binomial, geometric, poisson, negativebinomial, uniform |
SampleSize |
The size of the random sample to be drawn |
xout |
Grid points where the function will be evaluated |
par1 |
parameter 1 of the distirbution |
par2 |
parameter 2 of the distirbution |
Implements random number generation and density, survival and hazard rate estimates for several distributions. These functions are mainly used when simulating the mean square error etc from known distributions.
A vector with the values of the function at the designated points xout or the random numbers drawn.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.