sample_copula: Sample conditional variables using the Gaussian copula...

Description Usage Arguments Value Author(s)

View source: R/sampling.R

Description

Sample conditional variables using the Gaussian copula approach

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
sample_copula(
  index_given,
  n_samples,
  mu,
  cov_mat,
  m,
  x_test_gaussian,
  x_train,
  x_test
)

Arguments

index_given

Integer vector. The indices of the features to condition upon. Note that min(index_given) >= 1 and max(index_given) <= m.

m

Positive integer. The total number of features.

x_test_gaussian

Numeric matrix. Contains the observation whose predictions ought to be explained (test data), after quantile-transforming them to standard Gaussian variables.

x_test

Numeric matrix. Contains the features of the observation whose predictions ought to be explained (test data).

Value

data.table

Author(s)

Martin Jullum


shapr documentation built on Jan. 28, 2021, 5:06 p.m.