Hello everyone,

I used SEM to construct 5 factors using 29 variables. After, I did some regressions with those factors and ran normally. But, the issue starts when I tried to do mediation analysis via sgmediation command. The Stata returns me the following error:

factor variables and time-series operators not allowed
r(101);

Can someone help me to solve that? If it is important, I am using Stata 14.1 and my database is a survey and has 277 observations.

Many thanks.