rMAP: Modified Alpha Power Distribution

View source: R/rMAP.R

rMAPR Documentation

Modified Alpha Power Distribution

Description

Generates random deviates from MAP distribution for any base distribution using acceptance rejection criteria

Usage

rMAP(n,par,distr)

Arguments

n

number of random variates to be generated

par

named vector or list of the distribution parameters

distr

a character string specifying the base distribution (for example, "exp" for exponential base distribution).

Value

Random deviates from the modified alpha power distribution, length of the result is determined by n

Author(s)

Mohamed Hussein

References

Hussein, M.; Elsayed, H.; Cordeiro, G.M. A New Family of Continuous Distributions: Properties and Estimation. Symmetry 2022, 14, 276. https://doi.org/10.3390/sym14020276

Examples

x<-rMAP(n=500,par=c(rate=2,alpha=3,beta=2),distr="exp")
rMAP(n=100,par=c(scale=2,shape=2,alpha=3,beta=2),distr="weibull")

MHussein-S/MAPfit documentation built on June 30, 2023, 2:02 p.m.