frank_loglik_copula_scale: Loglikelihood on the Copula Scale for the Frank Copula

View source: R/copula_utils.R

frank_loglik_copula_scaleR Documentation

Loglikelihood on the Copula Scale for the Frank Copula

Description

frank_loglik_copula_scale() computes the loglikelihood on the copula scale for the Frank copula which is parameterized by theta as follows:

C(u, v) = - \frac{1}{\theta} \log \left[ 1 - \frac{(1 - e^{-\theta u})(1 - e^{-\theta v})}{1 - e^{-\theta}} \right]

Usage

frank_loglik_copula_scale(theta, u, v, d1, d2)

Arguments

theta

Copula parameter

u

A numeric vector. Corresponds to first variable on the copula scale.

v

A numeric vector. Corresponds to second variable on the copula scale.

d1

An integer vector. Indicates whether first variable is observed or right-censored,

  • d1[i] = 1 if u[i] corresponds to non-censored value

  • d1[i] = 0 if u[i] corresponds to right-censored value

  • d1[i] = -1 if u[i] corresponds to left-censored value

d2

An integer vector. Indicates whether first variable is observed or right-censored,

  • d2[i] = 1 if v[i] corresponds to non-censored value

  • d2[i] = 0 if v[i] corresponds to right-censored value

  • d2[i] = -1 if v[i] corresponds to left-censored value

Value

Value of the copula loglikelihood evaluated in theta.


Surrogate documentation built on Sept. 25, 2023, 5:07 p.m.