RdistSwitch, PdfSwitch, CdfSwitch, HazardRate {NPHazardRate}R Documentation

User driven input for random number generation and pdf, survival and hazard rate function calculation

Description

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

Usage

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.


[Package NPHazardRate version 0.1 Index]