sample_copula_parameters {Surrogate}R Documentation

Sample Unidentifiable Copula Parameters

Description

The sample_copula_parameters() function samples the unidentifiable copula parameters for the partly identifiable D-vine copula model, see for example fit_copula_model_BinCont() and fit_model_SurvSurv() for more information regarding the D-vine copula model.

Usage

sample_copula_parameters(
  copula_family2,
  n_sim,
  eq_cond_association = FALSE,
  lower = c(-1, -1, -1, -1),
  upper = c(1, 1, 1, 1)
)

Arguments

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)(c_{23}, c_{13;2}, c_{24;3}, c_{14;23}).

n_sim

Number of copula parameter vectors to be sampled.

eq_cond_association

(boolean) Indicates whether ρ13;2\rho_{13;2} and ρ24;3\rho_{24;3} are set equal.

lower

(numeric) Vector of length 4 that provides the lower limit, a=(a23,a13;2,a24;3,a14;23)\boldsymbol{a} = (a_{23}, a_{13;2}, a_{24;3}, a_{14;23})'. Defaults to c(-1, -1, -1, -1). If the provided lower limit is smaller than what is allowed for a particular copula family, then the copula family's lowest possible value is used instead.

upper

(numeric) Vector of length 4 that provides the upper limit, b=(b23,b13;2,b24;3,b14;23)\boldsymbol{b} = (b_{23}, b_{13;2}, b_{24;3}, b_{14;23})'. Defaults to c(1, 1, 1, 1).

Value

A n_sim by 4 numeric matrix where each row corresponds to a sample for θunid\boldsymbol{\theta}_{unid}.

Sampling

In the D-vine copula model in the Information-Theoretic Causal Inference (ITCI) framework, the following copulas are not identifiable: c23c_{23}, c13;2c_{13;2}, c24;3c_{24;3}, c14;23c_{14;23}. Let the corresponding copula parameters be

θunid=(θ23,θ13;2,θ24;3,θ14;23).\boldsymbol{\theta}_{unid} = (\theta_{23}, \theta_{13;2}, \theta_{24;3}, \theta_{14;23})'.

The allowable range for this parameter vector depends on the corresponding copula families. For parsimony and comparability across different copula families, the sampling procedure consists of two steps:

  1. Sample Spearman's rho parameters from a uniform distribution,

    ρunid=(ρ23,ρ13;2,ρ24;3,ρ14;23)U(a,b).\boldsymbol{\rho}_{unid} = (\rho_{23}, \rho_{13;2}, \rho_{24;3}, \rho_{14;23})' \sim U(\boldsymbol{a}, \boldsymbol{b}).

  2. Transform the sampled Spearman's rho parameters to the copula parameter scale, θunid\boldsymbol{\theta}_{unid}.

These two steps are repeated n_sim times.

Conditional Independence

In addition to range restrictions through the lower and upper arguments, we allow for so-called conditional independence assumptions. These assumptions entail that ρ13;2=0\rho_{13;2} = 0 and ρ24;3=0\rho_{24;3} = 0. Or in other words, U1U3U2U_1 \perp U_3 \, | \, U_2 and U2U4U3U_2 \perp U_4 \, | \, U_3. In the context of a surrogate evaluation trial (where (U1,U2,U3,U4)(U_1, U_2, U_3, U_4)' corresponds to the probability integral transformation of (T0,S0,S1,T1)(T_0, S_0, S_1, T_1)') this assumption could be justified by subject-matter knowledge.


[Package Surrogate version 3.3.0 Index]