rfolded {gendist}R Documentation

Random generation of folded model.

Description

Computes rg of the folded model.

Usage

rfolded(n, spec, arg, interval = c(0, 100))

Arguments

n

number of random generated values.

spec

a character string specifying the parent distribution (for example, "norm" if the parent distribution correspond to the normal).

arg

list of arguments/parameters of the parent distribution.

interval

a vector of interval end-points to search function root.

Value

An object of the length n, giving the random generated values for the folded model.

References

Abu Bakar, S. A., Nadarajah, S., Adzhar, Z. A. A. K., & Mohamed, I. (2016). gendist: An R package for generated probability distribution models. PloS one, 11(6).
Brazauskas, V., & Kleefeld, A. (2011). Folded and log-folded-t distributions as models for insurance loss data. Scandinavian Actuarial Journal, 2011(1), 59-74.

Examples

y=rfolded(10, spec="norm", arg=list(mean=1,sd=2), interval=c(0,100) )

[Package gendist version 2.0 Index]