calculate_interventional_probabilities: Calculate Probabilities of Interventional Events

View source: R/calculate_interventional_probabilities.R

calculate_interventional_probabilitiesR Documentation

Calculate Probabilities of Interventional Events

Description

Calculates probabilities of interventional events, for example, the probability that the outcome variable realizes within a critical range of values given an intervention on the exposure. See, for example, Eqs. 10, 15, and 22d in Gische and Voelkle (2022).

Usage

calculate_interventional_probabilities(
  mean = NULL,
  sd = NULL,
  y_low = NULL,
  y_up = NULL,
  model = NULL,
  use_model_values = FALSE,
  verbose = NULL
)

Arguments

mean

Numeric vector of means.

sd

Numeric vector of standard deviations.

y_low

Numeric vector of lower bounds.

y_up

Numeric vector of upper bounds.

verbose

Integer number setting verbosity of console outputs.

Value

List of numeric vectors of probabilities interventional events.

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.