calculate_interventional_covariance_matrix: Calculate Covariance Matrix of the Interventional...

View source: R/calculate_interventional_covariance_matrix.R

calculate_interventional_covariance_matrixR Documentation

Calculate Covariance Matrix of the Interventional Distribution

Description

Calculate Covariance Matrix of the Interventional Distribution. (see, for example, Eq. 6b in Gische and Voelkle, 2022). The arguments of the calculate_interventional_covariance_matrix function are described in Definition 1 in Gische and Voelkle (2022).

Usage

calculate_interventional_covariance_matrix(
  C = NULL,
  Psi = NULL,
  x = NULL,
  SI = NULL,
  n = NULL,
  IN = NULL,
  verbose = NULL,
  model = NULL,
  use_model_values = FALSE
)

Arguments

C

Numeric matrix of structural coefficients.

Psi

Numeric covariance matrix (Psi-matrix).

x

Numeric vector of interventional levels.

SI

Numeric selection matrix.

n

Integer number of observed variables.

IN

Numeric zero-one matrix.

verbose

Integer number describing the verbosity of console output. Admissible values: 0: no output (default), 1: user messages, 2: debugging-relevant messages.

Value

The covariance matrix of the interventional distribution.

References

Gische, C., Voelkle, M.C. (2022) Beyond the Mean: A Flexible Framework for Studying Causal Effects Using Linear Models. Psychometrika 87, 868–901. https://doi.org/10.1007/s11336-021-09811-z


christian-gische/causalSEM documentation built on April 26, 2023, 10:36 p.m.