Hi everyone, after some thorough searching on my own, I think I need a little nudging in a helpful direction:
GOAL:
Derive boostrapped Confidence Intervals for my specified indirect effects while using GSEM for model building.
CURRENT APPROACH:
I am using GSEM for model building (factor variables specified as IV's), and using NLCOM to derive the indirect effects. I would like build a bootstrap program to do this.
So far, the GSEM works without issue.
My NLCOM works without issue.
My attempts thus far to building a functioning bootstrap program for this has been a total failure. The program(s) I have built thus far are more than happy to run GSEM and NLCOM, but my attempts to store the relevant parameter from the NLCOM has been a bust.
My current understanding of what I should be doing is I would like to save the parameter from the NLCOM into a defined scalar, and this defined scalar is then referenced in the boostrap program. However, I fail here, as I always get the error "non r-class program may not set r() ". I presume this means I'm missing something obvious because of my limited Stata knowledge.
I am *not* committed to using NLCOM if there is another way to derive the indirect effect that plays nicely with bootstrap. I *am* committed to sticking with GSEM if at all possible.
Thank you in advance for any tips!
Related Posts with GSEM NLCOM and Bootstrapping
Extracting the year from a variable in stataHello, I probably have a very simple query but I can't work out how to solve it I have a variable en…
My nl equation has an error, please help!Hello everyone, I am trying to estimate the parameters a and c of a nonlinear equation. The nonline…
Summation using If condition to avoid negative valuesHello, I want to write a code that creates a value which is the summation of several rows. I have n…
Create a chart to track changes of exectuive titlesHi Statalist, I want to create a chart to record the title changes of exectuives. For example, I w…
Loop over quarterly variables to find yearly meansHi Everyone, I'm quite new to Stata (version 17.0) and I'm having some trouble implementing a loop …
Subscribe to:
Post Comments (Atom)
0 Response to GSEM NLCOM and Bootstrapping
Post a Comment