Learn R Programming

acid (version 1.1)

cdf.mix.LN: Cumulative Density Function of Log-Normal Mixture Distribution

Description

This function yields the cdf of a mixture distribution consisting of a point mass (at the lower end), a uniform distribution (above the point mass and below the log-normal distribution) and a log-normal distribution.

Usage

cdf.mix.LN(q, pi0, thres0 = 0, pi1, thres1, mu, sigma)

Arguments

q
a vector of quantiles.
pi0
the probability mass at thres0.
thres0
the location of the probability mass at the lower end of the distribution.
pi1
the probability mass of the uniform distribution.
thres1
the upper bound of the uniform distribution.
mu
the parameter mu of the Dagum distribution as defined by the function GB2.
sigma
the parameter sigma of the Dagum distribution as defined by the function GB2.

Value

  • returns the cumulative density for the given quantiles.

References

Sohn, A., Klein, N., Kneib. T. (2014): A New Semiparametric Approach to Analysing Conditional Income Distributions, in: SOEPpapers, No. 676.

See Also

gamlss.dist , gamlss.family

Examples

Run this code
pi0.s<-0.2
pi1.s<-0.1
thres0.s<-0
thres1.s<-25000
mu.s<-10
sigma.s<-2

cdf.mix.LN(50000,pi0.s,thres0.s,pi1.s,thres1.s,mu.s,sigma.s)

Run the code above in your browser using DataLab