lnt: Tangent-likelihood function.

Description Usage Arguments Examples

View source: R/MTE.R

Description

The function calculates tangent-likelihood given the value of density.

Usage

1
lnt(f, t, p)

Arguments

f

values of density function.

t

tangent point. It is positive and close to 0. If 0, the tangent-likelihood is equivalent to log-likelihood.

p

Taylor expansion order, the value can be set up to 3.

Examples

1
2
3
4
set.seed(2017)
x=c(rnorm(80), rnorm(20, 10, 10))
f=dnorm(x)
y=lnt(f, 0.1, 2)

MTE documentation built on May 2, 2019, 5:57 a.m.

Related to lnt in MTE...