R/LikelihoodApproximation.R
customFunction.Rd
A custom function to approximate a log likelihood function
customFunction(x, mu, sigma, gamma)
The log(hazard ratio) for which to approximate the log likelihood.
The position parameter.
The scale parameter.
The skew parameter.
The approximate log likelihood for the given x.
A custom parametric function designed to approximate the shape of the Cox log likelihood function.
When gamma = 0
this function is the normal distribution.
customFunction(x = 0:3, mu = 0, sigma = 1, gamma = 0)
#> [1] 0.0 -0.5 -2.0 -4.5