plotMPo: Modified Power Distribution

plotMPoR Documentation

Modified Power Distribution

Description

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

Usage

plotMPo(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, P-P plot and Q-Q plot

Author(s)

Mohamed Hussein

Examples

#{
data<-rMPo(n=500,par=c(rate=2,a=2),distr="exp")
plotMPo(data,distr = "exp",para=c(rate=2,a=3))
plotMPo(data,distr = "exp",para=c(rate=2,a=3),histo=FALSE)
#}

MHussein-S/MPofit documentation built on June 14, 2022, 5:16 p.m.