445
Estimating a User-Defined Quantity in Bayesian SEM
computing the direct effect and the indirect individually, but this is only to show how
to do it. The direct effect and the indirect effect individually can be estimated without
defining them as custom estimands. To define each estimand, we use the keyword
newestimand, as shown below:
The words
“direct”, “indirect”, and “difference” are estimand labels. You can use different
labels.
The function CalculateEstimands computes the values of the estimands defined in
the
DeclareEstimands subroutine. Only the first line of the function is shown.
E To display all of the lines, double-click Function CalculateEstimands or click the + sign
in the little box at the beginning of the line.