50% off: Unlimited data and AI learning.
State of Data and AI Literacy Report 2025

dsem (version 1.5.0)

total_effect: Calculate total effects

Description

Calculate a data frame of total effects, representing the estimated effect of every variable on every other variable and any time-lag from 0 (simultaneous effects) to a user-specified maximum lag.

Usage

total_effect(object, n_lags = 4)

Value

A data frame listing the time-lag (lag), variable that is undergoing some exogenous change (from), and the variable being impacted (to), along with the total effect (total_effect) including direct and indirect pathways, and the partial "direct" effect (direct_effect)

Arguments

object

Output from dsem

n_lags

Number of lags over which to calculate total effects

Details

Total effects are taken from the Leontief matrix (IP)1, where P is the path matrix across variables and times.