Dear all,
I am trying to create a table with direct, indirect and total effects after a structural equation model.
After running the codes in StataNow/SE19.5:
***data from the sem documentation (example 7)
***Example 7
***the code for decomposing total effects into direct and indirect effects
the code:
will only provide the direct effects (the coefficients), and the code:
seems to be empty.
I am able to produce a table using the codes:
However, I was looking for using for instance collect table and its features (e.g. list variable labels as etable does). Is there anyone out there who can help me with this? Any tip or recommendations are gratefully acknowledged.
I am trying to create a table with direct, indirect and total effects after a structural equation model.
After running the codes in StataNow/SE19.5:
***data from the sem documentation (example 7)
Code:
use https://www.stata-press.com/data/r19/sem_sm1
Code:
sem (r_occasp <- f_occasp r_intel r_ses f_ses) (f_occasp <- r_occasp f_intel f_ses r_ses), cov(e.r_occasp*e.f_occasp) standardized
Code:
estat teffects
Code:
etable
Code:
db tables
I am able to produce a table using the codes:
Code:
sem (r_occasp <- f_occasp r_intel r_ses f_ses) (f_occasp <- r_occasp f_intel f_ses r_ses), cov(e.r_occasp*e.f_occasp) standardized estat teffects mat direct = r(direct)' mat indirect = r(indirect)' mat total = r(total)' mat rowjoin tabell = direct indirect total mat list tabell

Comment