rMPo: Modified Power Distribution

View source: R/rMPo.R

rMPoR Documentation

Modified Power Distribution

Description

Generates random deviates from MPo distribution for any base distribution

Usage

rMPo(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 power distribution, length of the result is determined by n

Author(s)

Mohamed Hussein

Examples

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

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