ddyn {FitDynMix} | R Documentation |
Density of a Lognormal-GPD dynamic mixture
Description
This function evaluates the density of a Lognormal-GPD dynamic mixture, with Cauchy or exponential weight.
Usage
ddyn(x, pars, intTol, weight)
Arguments
x |
non-negative vector: points where the density is evaluated. |
pars |
numerical vector: if weight is equal to 'cau', values of |
intTol |
non-negative scalar: threshold for stopping the computation of the integral in the normalization constant: if the integral on the interval from n-1 to n is smaller than intTol, the approximation procedure stops. |
weight |
'cau' or 'exp': name of weight distribution. |
Value
density of the lognormal-GPD mixture evaluated at x.
Examples
x <- seq(0,20,length.out=1000)
pars <- c(1,2,0,.5,.25,3.5)
dLNPar <- ddyn(x,pars,1e-04,'cau')
[Package FitDynMix version 1.0.0 Index]