View source: R/calculate_interventional_probabilities.R
calculate_interventional_probabilities | R Documentation |
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).
calculate_interventional_probabilities(
mean = NULL,
sd = NULL,
y_low = NULL,
y_up = NULL,
model = NULL,
use_model_values = FALSE,
verbose = NULL
)
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. |
List of numeric vectors of probabilities interventional events.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.