rfolded: Random generation of folded model.

Description Usage Arguments Value References Examples

View source: R/gendist.R

Description

Computes rg of the folded model.

Usage

1
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

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

gendist documentation built on May 2, 2019, 3:34 p.m.