plotMAP: Modified Alpha Power Distribution

plotMAPR Documentation

Modified Alpha Power Distribution

Description

Plots the empirical and theoretical density, CDF and P-P plot

Usage

plotMAP(data, distr, para, histo = TRUE, breaks = "default", demp = TRUE)

Arguments

data

a vector of data values for which the distribution was fitted

distr

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

para

named vector or list of the distribution parameters

histo

A logical to plot the histogram using the hist function

breaks

If "default" the histogram is plotted with the function hist with its default breaks definition. Else breaks is passed to the function hist.

demp

A logical to plot the empirical density on the first plot (alone or superimposed on the histogram depending of the value of the argument histo) using the density function.

Value

Graph of empirical versus theoretical cdf, pdf

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

#{
data<-rMAP(n=500,par=c(rate=2,alpha=3,beta=2),distr="exp")
plotMAP(data,distr = "exp",para=c(rate=2,alpha=3,beta=2))
plotMAP(data,distr = "exp",para=c(rate=2,alpha=3,beta=2),histo=FALSE)
#}

mhsayed2021/MAPfit documentation built on July 1, 2023, 9:19 p.m.