Auxiliary function to evaluate the log-likelihood of the mean-parametrized NPGL2 distribution.

logLik_NPGL2(param = c(log(3), log(2)), x)

Arguments

param

vector with the values for mu and sigma

x

vector with the data

Examples

y <- rNPGL2(n = 100, mu = 3, sigma = 2)
logLik_NPGL2(param = c(log(3), log(2)), x = y)
#> [1] -231.1008