
443
Estimating a User-Defined Quantity in Bayesian SEM
Numeric Custom Estimands
In this section, we show how to write a Visual Basic program for estimating the 
numeric difference between a direct effect and an indirect effect. (You can use C# 
instead of Visual Basic.) The final Visual Basic program is in the file Ex29.vb.
The first step in writing a program to define a custom estimand is to open the custom 
estimands window.
EFrom the menus on the Bayesian SEM window, choose View > Custom estimands.
This window displays a skeleton Visual Basic program to which we will add lines to 
define the new quantities that we want Amos to estimate. 
Note: If you want to use C# instead of Visual Basic, from the menus, choose File > New 
C# plug-in.