Learn R Programming

EvidenceSynthesis (version 0.5.0)

skewNormal: The skew normal function to approximate a log likelihood function

Description

The skew normal function to approximate a log likelihood function

Usage

skewNormal(x, mu, sigma, alpha)

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.

alpha

The skew parameter.

Details

The skew normal function. When alpha = 0 this function is the normal distribution.

References

Azzalini, A. (2013). The Skew-Normal and Related Families. Institute of Mathematical Statistics Monographs. Cambridge University Press.

Examples

Run this code
skewNormal(x = 0:3, mu = 0, sigma = 1, alpha = 0)

Run the code above in your browser using DataLab