calculate_interventional_density: Calculate PDF of Interventional Distribution

View source: R/calculate_interventional_density.R

calculate_interventional_densityR Documentation

Calculate PDF of Interventional Distribution

Description

Calculate the probability density function (pdf) of the interventional distribution. The values are computed pointwise over a grid of values for each univariate variable separately (i.e., the pdfs of the marginal distributions). See, for example, Eqs. 9, 14, and 22c in Gische and Voelkle (2022).

Usage

calculate_interventional_density(
  E = NULL,
  V = NULL,
  var_names = NULL,
  n_grid = NULL,
  model = NULL,
  use_model_values = FALSE,
  verbose = NULL
)

Arguments

E

Numeric vector of mean values.

V

Numeric vector of variances.

var_names

Character vector of variable names.

verbose

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

Value

List of numeric vectors (named if var_names are supplied) containing the values of the marginal pdf of each outcome variable (over a grid of values).

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.