Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

Surrogate (version 3.3.3)

compute_ICA_OrdOrd: Compute Individual Causal Association for a given D-vine copula model in the Ordinal-Ordinal Setting

Description

The compute_ICA_OrdOrd() function computes the individual causal association for a fully identified D-vine copula model in the setting with an ordinal surrogate and true endpoint.

Usage

compute_ICA_OrdOrd(
  copula_par,
  rotation_par,
  copula_family1,
  copula_family2 = copula_family1,
  n_prec,
  q_S0,
  q_T0,
  q_S1,
  q_T1,
  marginal_sp_rho = TRUE,
  seed = 1,
  ICA_estimator = NULL
)

Value

(numeric) A Named vector with the following elements:

  • ICA

  • Spearman's rho, ρs(ΔS,ΔT) (if asked)

  • Marginal association parameters in terms of Spearman's rho (if asked): ρs(T0,S0),ρs(T0,S1),ρs(T0,T1),ρs(S0,S1),ρs(S0,T1),ρs(S1,T1)

Arguments

copula_par

Parameter vector for the sequence of bivariate copulas that define the D-vine copula. The elements of copula_par correspond to (c12,c23,c34,c13;2,c24;3,c14;23).

rotation_par

Vector of rotation parameters for the sequence of bivariate copulas that define the D-vine copula. The elements of rotation_par correspond to (c12,c23,c34,c13;2,c24;3,c14;23).

copula_family1

Copula family of c12 and c34. For the possible options, see loglik_copula_scale(). The elements of copula_family correspond to (c12,c34).

copula_family2

Copula family of the other bivariate copulas. For the possible options, see loglik_copula_scale(). The elements of copula_family2 correspond to (c23,c13;2,c24;3,c14;23).

n_prec

Number of Monte Carlo samples for the computation of the mutual information.

q_S0

Quantile function for the distribution of S0.

q_T0

Quantile function for the distribution of T0.

q_S1

Quantile function for the distribution of S1.

q_T1

Quantile function for the distribution of T1.

marginal_sp_rho

(boolean) Compute the sample Spearman correlation matrix? Defaults to TRUE.

seed

Seed for Monte Carlo sampling. This seed does not affect the global environment.

ICA_estimator

Function that estimates the ICA between the first two arguments which are numeric vectors. Defaults to NULL which corresponds to using estimate_ICA_OrdOrd().