Hello (long post, question at bottom),
I am attempting to estimate indirect effects for a multigroup structural model where some paths are estimated in one group but not the other. Before attempting to estimate the indirect effects, I handled situations where a parameter was estimated in one group but not the other by labeling that parameter 'NA' for the first group and '0' for the second. In situations where the parameter was constrained to equality across groups, I used the same label over groups, e.g., (p1, p1). In situations where the parameter was freely estimated across groups, I simply did not add group labels for that parameter. For example:
Because I am now interested in estimating indirect effects, parameters previously estimated in one group but not the other now require a label instead of 'NA' so I can define the indirect effect in the script. E.g., a parameter previously labeled (NA, 0) is now labeled (p5, 0). For example (see line 19):
The issue appears to be that, because I have added a parameter label instead of 'NA' in cases where the path is estimated in one group but not the other, lavaan is overriding the '0' for the second group in favor of the parameter label for the first group and is now estimating that parameter for both groups. For example, see line 23 in the output below (p5, group 2, which should be 0):
Because lavaan is estimating parameters where it should not be, the results are now different when I am attempting to estimate the indirect effects. So, my question is relatively simple, but I am new to this group and am trying to provide sufficient information so that someone who knows can help. My question is: when estimating indirect effects, how can I label parameters estimated in one group but not the other such that lavaan does not override the '0' specified for the latter group?
Any insight would be soooooo appreciated.
Thanks for this tip! I were not aware of this technique. This makes the model specification easier to read!