A custom function to approximate a log likelihood function

customFunction(x, mu, sigma, gamma)

Arguments

x

The log(hazard ratio) for which to approximate the log likelihood.

mu

The position parameter.

sigma

The scale parameter.

gamma

The skew parameter.

Value

The approximate log likelihood for the given x.

Details

A custom parametric function designed to approximate the shape of the Cox log likelihood function. When gamma = 0 this function is the normal distribution.

Examples

customFunction(x = 0:3, mu = 0, sigma = 1, gamma = 0)
#> [1]  0.0 -0.5 -2.0 -4.5