Learn R Programming

EvidenceSynthesis (version 0.5.0)

customFunction: A custom function to approximate a log likelihood function

Description

A custom function to approximate a log likelihood function

Usage

customFunction(x, mu, sigma, gamma)

Value

The approximate log likelihood for the given x.

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.

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

Run this code
customFunction(x = 0:3, mu = 0, sigma = 1, gamma = 0)

Run the code above in your browser using DataLab