View source: R/ll_lnormparmix.R
ll_lnormparmix | R Documentation |
This function evaluates the log-likelihood function with respect to xmin for a mixture of a lognormal and a Pareto r.v., assuming to know the numerical values of all the other parameters.
ll_lnormparmix(x, pi, mu, sigma, alpha, y)
x |
positive scalar: value of xmin where the function is evaluated. |
pi |
scalar, 0 < pi < 1: mixing weight. |
mu |
scalar: expected value of the lognormal distribution on the log scale. |
sigma |
positive scalar: standard deviation of the lognormal distribution on the log scale. |
alpha |
non-negative scalar: Pareto shape parameter. |
y |
(nx1) vector: random sample from the mixture. |
ll numerical value of the log-likelihood function.
y <- rLnormParMix(100,.5,0,1,4,1.5)
llMix <- ll_lnormparmix(5,.5,0,1,4,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.