powered by
The function calculates tangent-likelihood given the value of density.
lnt(f, t, p)
values of density function.
tangent point. It is positive and close to 0. If 0, the tangent-likelihood is equivalent to log-likelihood.
Taylor expansion order, the value can be set up to 3.
# NOT RUN { set.seed(2017) x=c(rnorm(80), rnorm(20, 10, 10)) f=dnorm(x) y=lnt(f, 0.1, 2) # }
Run the code above in your browser using DataLab