rcomposite: Random generation of composite model.

Description Usage Arguments Value Author(s) References Examples

Description

Computes rg of the composite model.

Usage

1
rcomposite(n, spec1, arg1, spec2, arg2, initial = 1)

Arguments

n

number of random generated values.

spec1

a character string specifying the head parent distribution (for example, "lnorm" if the parent distribution corresponds to the lognormal).

arg1

list of arguments/parameters of the head parent distribution.

spec2

a character string specifying the tail parent distribution (for example, "exp" if the parent distribution corresponds to the exponential).

arg2

list of arguments/parameters of the tail parent distribution.

initial

initial values of the threshold, θ.

Value

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

Author(s)

Shaiful Anuar Abu Bakar

References

S.A. Abu Bakar, S. Nadarajah, Z.A. ABSL Kamarul Adzhar, I. Mohamed. gendist: An R package for generated probability distribution models, submitted.
Cooray, K., & Ananda, M. M. (2005). Modeling actuarial data with a composite lognormal-Pareto model. Scandinavian Actuarial Journal, 2005(5), 321-334.
Scollnik, D. P. (2007). On composite lognormal-Pareto models. Scandinavian Actuarial Journal, 2007(1), 20-33.
Nadarajah, S., & Bakar, S. A. A. (2014). New composite models for the Danish fire insurance data. Scandinavian Actuarial Journal, 2014(2), 180-187.
Bakar, S. A., Hamzah, N. A., Maghsoudi, M., & Nadarajah, S. (2015). Modeling loss data using composite models. Insurance: Mathematics and Economics, 61, 146-154.

Examples

1
2
y=rcomposite(10, spec1="lnorm", arg1=list(meanlog=0.1,sdlog=0.2), spec2="exp", 
             arg2=list(rate=0.5))


Search within the gendist package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.