calculate_constant_matrices: Calculate Zero-One Matrices

View source: R/calculate_constant_matrices.R

calculate_constant_matricesR Documentation

Calculate Zero-One Matrices

Description

Calculates zero-one matrices used in the computation of the interventional distribution (see, for example, Definition 1 in Gische and Voelkle, 2022).

Usage

calculate_constant_matrices(
  model = NULL,
  intervention_names = NULL,
  outcome_names = NULL,
  verbose = NULL,
  use_model_values = FALSE
)

Arguments

model

Object of class causalSEM.

intervention_names

Names of interventional variables.

outcome_names

Names of outcome variables.

verbose

Verbosity of console output.

Value

List with several zero-one matrices:

$select_intervention
$select_non_intervention
$select_outcome
$eliminate_intervention
$duplication_matrix
$elimination_matrix
$commutation_matrix

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.