File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 173173# ## Recommended methods
174174# ###########################################################################################
175175
176- update_observed (lossfun:: SemWLS , observed:: SemObserved ; kwargs... ) = SemWLS (;
177- observed = observed,
178- meanstructure = MeanStruct (kwargs[:implied ]) == HasMeanStruct,
179- kwargs... )
176+ function update_observed (lossfun:: SemWLS , observed:: SemObserved ; recompute_V = true , kwargs... )
177+ if recompute_V
178+ return SemWLS (;
179+ observed = observed,
180+ meanstructure = MeanStruct (kwargs[:implied ]) == HasMeanStruct,
181+ kwargs... )
182+ else
183+ return SemWLS (;
184+ observed = observed,
185+ wls_weight_matrix = lossfun. V,
186+ wls_weight_matrix_mean = lossfun. V_μ,
187+ meanstructure = MeanStruct (kwargs[:implied ]) == HasMeanStruct,
188+ kwargs... )
189+
190+ end
191+ end
You can’t perform that action at this time.
0 commit comments