calculate_interventional_means: Calculate Interventional Mean

View source: R/calculate_interventional_means.R

calculate_interventional_meansR Documentation

Calculate Interventional Mean

Description

Calculate mean vector of the interventional distribution (see, for example, Eqs. 6a, 12a, and 22a in Gische and Voelkle, 2022). The arguments SI and IN (zero-one matrices) of the function are described in Definition 1 in Gische and Voelkle (2022).

Usage

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

Arguments

C

Numeric matrix of structural coefficients.

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 numeric mean vector 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.