Hi
I was trying to use the nlcom function in Stata to do a mediated analysis with multiple categorical IVs. Was following the steps here: https://stats.oarc.ucla.edu/stata/fa...l-iv-in-stata/
I have already created dummy coded IVs - called cp2 and cp3.
Everything was fine until I got to the command: nlcom [mediator]_b[cp2]*[dependent variable]_b[mediator]. That is when I got the following error message:
[cp2] not found
r(111);
Does anyone know how to solve this?
Thanks!
Derek
I was trying to use the nlcom function in Stata to do a mediated analysis with multiple categorical IVs. Was following the steps here: https://stats.oarc.ucla.edu/stata/fa...l-iv-in-stata/
I have already created dummy coded IVs - called cp2 and cp3.
Everything was fine until I got to the command: nlcom [mediator]_b[cp2]*[dependent variable]_b[mediator]. That is when I got the following error message:
[cp2] not found
r(111);
Does anyone know how to solve this?
Thanks!
Derek