Auxiliary: User driven input for random number generation and pdf,...

Description Usage Arguments Details Value

Description

Auxiliary functions that help automate the process of random number generation or pdf, survival function or hazard rate functions

Usage

1
2
3
4
RdistSwitch(dist, SampleSize, par1, par2)
PdfSwitch(xout, dist, par1, par2)
CdfSwitch(xout, dist, par1, par2)
HazardRate(xout, dist, par1, par2)

Arguments

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

Details

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.

Value

A vector with the values of the function at the designated points xout or the random numbers drawn.


NPHazardRate documentation built on May 2, 2019, 10:24 a.m.